Skip to content

Commit d4859a0

Browse files
committed
Fixed coding style.
1 parent 85c5913 commit d4859a0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

ScpSettings/MainWindow.xaml.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ public MainWindow()
3333

3434
private void Window_Closing(object sender, CancelEventArgs e)
3535
{
36-
Write_Config();
36+
WriteConfig();
3737
}
3838

39-
private void Write_Config()
39+
private void WriteConfig()
4040
{
4141
if (!_proxy.IsActive || _config == null)
4242
return;
@@ -50,10 +50,10 @@ private void Write_Config()
5050

5151
private void Window_Initialized(object sender, EventArgs e)
5252
{
53-
Load_Config();
53+
LoadConfig();
5454
}
5555

56-
private void Load_Config()
56+
private void LoadConfig()
5757
{
5858
try
5959
{
@@ -193,7 +193,7 @@ private void XInputModToggleButton_Unchecked(object sender, RoutedEventArgs e)
193193
XInputModToggleButton.Content = "Enable";
194194
}
195195

196-
private void Disable_Events()
196+
private void DisableEvents()
197197
{
198198
IdleTimoutSlider.ValueChanged -= IdleTimoutSlider_ValueChanged;
199199
BrightnessSlider.ValueChanged -= BrightnessSlider_ValueChanged;
@@ -205,7 +205,7 @@ private void Disable_Events()
205205
XInputModToggleButton.Unchecked -= XInputModToggleButton_Unchecked;
206206
}
207207

208-
private void Enable_Events()
208+
private void EnableEvents()
209209
{
210210
IdleTimoutSlider.ValueChanged += IdleTimoutSlider_ValueChanged;
211211
BrightnessSlider.ValueChanged += BrightnessSlider_ValueChanged;
@@ -219,12 +219,12 @@ private void Enable_Events()
219219

220220
private void ApplyButton_Click(object sender, RoutedEventArgs e)
221221
{
222-
Disable_Events();
222+
DisableEvents();
223223

224-
Write_Config();
225-
Load_Config();
224+
WriteConfig();
225+
LoadConfig();
226226

227-
Enable_Events();
227+
EnableEvents();
228228
}
229229

230230
#endregion

0 commit comments

Comments
 (0)