mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
code_style: move private member/functions (except static readonly members) after all public members
This commit is contained in:
parent
5e66765326
commit
eb4f38b676
2 changed files with 11 additions and 11 deletions
|
@ -97,8 +97,6 @@ namespace SourceGit.Native
|
|||
});
|
||||
}
|
||||
|
||||
private static readonly IBackend _backend;
|
||||
|
||||
public static void OpenInFleet(string repo)
|
||||
{
|
||||
if (string.IsNullOrEmpty(FleetExecutableFile))
|
||||
|
@ -115,5 +113,7 @@ namespace SourceGit.Native
|
|||
UseShellExecute = false,
|
||||
});
|
||||
}
|
||||
|
||||
private static readonly IBackend _backend;
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
|
||||
|
@ -202,13 +210,5 @@ namespace SourceGit.Native
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue