code_style: move private member/functions (except static readonly members) after all public members

This commit is contained in:
leo 2024-03-28 20:02:18 +08:00
parent 5e66765326
commit eb4f38b676
2 changed files with 11 additions and 11 deletions

View file

@ -97,8 +97,6 @@ namespace SourceGit.Native
}); });
} }
private static readonly IBackend _backend;
public static void OpenInFleet(string repo) public static void OpenInFleet(string repo)
{ {
if (string.IsNullOrEmpty(FleetExecutableFile)) if (string.IsNullOrEmpty(FleetExecutableFile))
@ -115,5 +113,7 @@ namespace SourceGit.Native
UseShellExecute = false, UseShellExecute = false,
}); });
} }
private static readonly IBackend _backend;
} }
} }

View file

@ -189,7 +189,15 @@ namespace SourceGit.Native
} }
} }
private static void OpenFolderAndSelectFile(string folderPath) public void OpenWithDefaultEditor(string file)
{
var info = new FileInfo(file);
var start = new ProcessStartInfo("cmd", $"/c start {info.FullName}");
start.CreateNoWindow = true;
Process.Start(start);
}
private void OpenFolderAndSelectFile(string folderPath)
{ {
var pidl = ILCreateFromPathW(folderPath); var pidl = ILCreateFromPathW(folderPath);
@ -202,13 +210,5 @@ namespace SourceGit.Native
ILFree(pidl); ILFree(pidl);
} }
} }
public void OpenWithDefaultEditor(string file)
{
var info = new FileInfo(file);
var start = new ProcessStartInfo("cmd", $"/c start {info.FullName}");
start.CreateNoWindow = true;
Process.Start(start);
}
} }
} }