mirror of
https://github.com/MathiasLui/CSGO-Projects.git
synced 2025-05-11 08:01:16 +00:00

* Make necessary adjustments to have the same working program * AssemblyInfo is not set via the file anymore, but the csproj file or in the project settings under Package->General (AssemblyVersion is the one displayed in the Help window) * Add null-forgiving operators etc. for new language version * Move stuff that is shared between the DamageCalculator and ConfigManagerV2 into its separate project
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Data;
|
|
using System.Windows.Documents;
|
|
using System.Windows.Input;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
using System.Windows.Navigation;
|
|
using System.Windows.Shapes;
|
|
|
|
namespace ConfigManagerV2
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for MainWindow.xaml
|
|
/// </summary>
|
|
public partial class MainWindow : Window
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
#region events
|
|
private void changeTheme_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
switch (int.Parse(((MenuItem)sender).Uid))
|
|
{
|
|
case 0:
|
|
REghZyFramework.Themes.ThemesController.SetTheme(REghZyFramework.Themes.ThemesController.ThemeTypes.Dark);
|
|
break;
|
|
case 1:
|
|
REghZyFramework.Themes.ThemesController.SetTheme(REghZyFramework.Themes.ThemesController.ThemeTypes.Light);
|
|
break;
|
|
}
|
|
e.Handled = true;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|