Skip to content

Commit

Permalink
Fixed coding style.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizonix committed Feb 8, 2017
1 parent 85c5913 commit d4859a0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ScpSettings/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public MainWindow()

private void Window_Closing(object sender, CancelEventArgs e)
{
Write_Config();
WriteConfig();
}

private void Write_Config()
private void WriteConfig()
{
if (!_proxy.IsActive || _config == null)
return;
Expand All @@ -50,10 +50,10 @@ private void Write_Config()

private void Window_Initialized(object sender, EventArgs e)
{
Load_Config();
LoadConfig();
}

private void Load_Config()
private void LoadConfig()
{
try
{
Expand Down Expand Up @@ -193,7 +193,7 @@ private void XInputModToggleButton_Unchecked(object sender, RoutedEventArgs e)
XInputModToggleButton.Content = "Enable";
}

private void Disable_Events()
private void DisableEvents()
{
IdleTimoutSlider.ValueChanged -= IdleTimoutSlider_ValueChanged;
BrightnessSlider.ValueChanged -= BrightnessSlider_ValueChanged;
Expand All @@ -205,7 +205,7 @@ private void Disable_Events()
XInputModToggleButton.Unchecked -= XInputModToggleButton_Unchecked;
}

private void Enable_Events()
private void EnableEvents()
{
IdleTimoutSlider.ValueChanged += IdleTimoutSlider_ValueChanged;
BrightnessSlider.ValueChanged += BrightnessSlider_ValueChanged;
Expand All @@ -219,12 +219,12 @@ private void Enable_Events()

private void ApplyButton_Click(object sender, RoutedEventArgs e)
{
Disable_Events();
DisableEvents();

Write_Config();
Load_Config();
WriteConfig();
LoadConfig();

Enable_Events();
EnableEvents();
}

#endregion
Expand Down

0 comments on commit d4859a0

Please sign in to comment.