Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanharikr committed Jan 21, 2024
1 parent c687dc6 commit 194983c
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions RockstarGamesLauncher/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
using System.Windows;
using System.Windows.Input;
using RockstarGamesLauncher.Views;
using RockstarGamesLauncher.ViewModels;

namespace RockstarGamesLauncher
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
Expand All @@ -16,15 +12,9 @@ public MainWindow()
DataContext = new MainViewModel();
}

private void DragApp(object sender, MouseButtonEventArgs e)
{
DragMove();
}
private void DragApp(object sender, MouseButtonEventArgs e) => DragMove();

private void MinimizeApp(object sender, RoutedEventArgs e)
{
WindowState = WindowState.Minimized;
}
private void MinimizeApp(object sender, RoutedEventArgs e) => WindowState = WindowState.Minimized;

private void MaximizeApp(object sender, RoutedEventArgs e)
{
Expand All @@ -34,9 +24,6 @@ private void MaximizeApp(object sender, RoutedEventArgs e)
WindowState = WindowState.Maximized;
}

private void CloseApp(object sender, RoutedEventArgs e)
{
Close();
}
private void CloseApp(object sender, RoutedEventArgs e) => Close();
}
}

0 comments on commit 194983c

Please sign in to comment.