Skip to content

Commit eb4f38b

Browse files
committed
code_style: move private member/functions (except static readonly members) after all public members
1 parent 5e66765 commit eb4f38b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/SourceGit/Native/OS.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ public static void OpenInVSCode(string repo)
9797
});
9898
}
9999

100-
private static readonly IBackend _backend;
101-
102100
public static void OpenInFleet(string repo)
103101
{
104102
if (string.IsNullOrEmpty(FleetExecutableFile))
@@ -115,5 +113,7 @@ public static void OpenInFleet(string repo)
115113
UseShellExecute = false,
116114
});
117115
}
116+
117+
private static readonly IBackend _backend;
118118
}
119119
}

src/SourceGit/Native/Windows.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,15 @@ public void OpenInFileManager(string path, bool select)
189189
}
190190
}
191191

192-
private static void OpenFolderAndSelectFile(string folderPath)
192+
public void OpenWithDefaultEditor(string file)
193+
{
194+
var info = new FileInfo(file);
195+
var start = new ProcessStartInfo("cmd", $"/c start {info.FullName}");
196+
start.CreateNoWindow = true;
197+
Process.Start(start);
198+
}
199+
200+
private void OpenFolderAndSelectFile(string folderPath)
193201
{
194202
var pidl = ILCreateFromPathW(folderPath);
195203

@@ -202,13 +210,5 @@ private static void OpenFolderAndSelectFile(string folderPath)
202210
ILFree(pidl);
203211
}
204212
}
205-
206-
public void OpenWithDefaultEditor(string file)
207-
{
208-
var info = new FileInfo(file);
209-
var start = new ProcessStartInfo("cmd", $"/c start {info.FullName}");
210-
start.CreateNoWindow = true;
211-
Process.Start(start);
212-
}
213213
}
214214
}

0 commit comments

Comments
 (0)