diff --git a/About.xaml.cs b/About.xaml.cs
index 9701fb3..b28e71d 100644
--- a/About.xaml.cs
+++ b/About.xaml.cs
@@ -14,7 +14,7 @@ namespace AnotherReplayReader
_idBox.Text = Auth.Id;
}
- private void Hyperlink_RequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
+ private void OnHyperlinkRequestNavigate(object sender, System.Windows.Navigation.RequestNavigateEventArgs e)
{
Process.Start(e.Uri.ToString());
}
diff --git a/Debug.xaml b/Debug.xaml
index c45e0ee..b26d5c2 100644
--- a/Debug.xaml
+++ b/Debug.xaml
@@ -13,10 +13,10 @@
+ Click="OnExportButtonClick" />
+ Click="OnClearButtonClick" />
Export(this);
+ private void OnExportButtonClick(object sender, RoutedEventArgs e) => Export(this);
- private void OnClear_Click(object sender, RoutedEventArgs e) => _textBox.Clear();
+ private void OnClearButtonClick(object sender, RoutedEventArgs e) => _textBox.Clear();
private void AppendText(string s) => Dispatcher.InvokeAsync(() => _textBox.AppendText(s));
diff --git a/MainWindow.xaml b/MainWindow.xaml
index b3204a8..a4e59d9 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -23,8 +23,8 @@
-
-
+
+
@@ -42,7 +42,7 @@
Height="20"
VerticalAlignment="Top">
+ TextChanged="OnReplayFilterBoxTextChanged" />
-
+
+ Height="35" VerticalAlignment="Bottom" IsEnabled="{Binding Path=ReplayPlayable}" Click="OnPlayReplayButtonClick"/>
+ Height="35" VerticalAlignment="Bottom" IsEnabled="{Binding Path=ReplayDamaged}" Click="OnFixReplayButtonClick"/>
+ Click="OnDetailsButtonClick" />
diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs
index 4811415..2ec01ad 100644
--- a/MainWindow.xaml.cs
+++ b/MainWindow.xaml.cs
@@ -332,13 +332,13 @@ namespace AnotherReplayReader
await _taskQueue.Enqueue(() => DisplayReplayDetail(replay, _properties.ReplayDetails, token), token);
}
- private void OnAboutButton_Click(object sender, RoutedEventArgs e)
+ private void OnAboutButtonClick(object sender, RoutedEventArgs e)
{
var aboutWindow = new About();
aboutWindow.ShowDialog();
}
- private void OnBrowseButton_Click(object sender, RoutedEventArgs e)
+ private void OnBrowseButtonClick(object sender, RoutedEventArgs e)
{
try
{
@@ -362,20 +362,20 @@ namespace AnotherReplayReader
}
}
- private void OnDetailsButton_Click(object sender, RoutedEventArgs e)
+ private void OnDetailsButtonClick(object sender, RoutedEventArgs e)
{
var detailsWindow = new ApmWindow(_properties.CurrentReplay!, _playerIdentity);
detailsWindow.ShowDialog();
}
- private void OnDebugButton_Click(object sender, RoutedEventArgs e) => Debug.ShowDialog();
+ private void OnDebugButtonClick(object sender, RoutedEventArgs e) => Debug.ShowDialog();
- private void OnPlayReplayButton_Click(object sender, RoutedEventArgs e)
+ private void OnPlayReplayButtonClick(object sender, RoutedEventArgs e)
{
Process.Start(_properties.RA3Exe, $" -replayGame \"{_properties.CurrentReplay}\" ");
}
- private async void OnFixReplayButton_Click(object sender, RoutedEventArgs e)
+ private async void OnFixReplayButtonClick(object sender, RoutedEventArgs e)
{
var replay = _properties.CurrentReplay ?? throw new InvalidOperationException("Trying to fix a null replay");
@@ -406,7 +406,7 @@ namespace AnotherReplayReader
await _taskQueue.Enqueue(() => LoadReplays(replay.Path, token), token);
}
- private async void ReplayFilterBox_TextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
+ private async void OnReplayFilterBoxTextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
{
_filterStrings = _replayFilterBox.Text
.Split(',', ' ', ',')
diff --git a/Window1.xaml b/Window1.xaml
index 7920edd..2ef0f10 100644
--- a/Window1.xaml
+++ b/Window1.xaml
@@ -15,7 +15,7 @@
diff --git a/Window1.xaml.cs b/Window1.xaml.cs
index 7049328..b9ed94e 100644
--- a/Window1.xaml.cs
+++ b/Window1.xaml.cs
@@ -133,7 +133,7 @@ namespace AnotherReplayReader
await Display(ipText, idText);
}
- private void DataGrid_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
+ private void OnDataGridMouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e)
{
}