2019-08-21 07:33:35 +02:00
|
|
|
|
using GTAOnlineCasinoHelper.Extensions;
|
2021-03-17 23:29:49 +01:00
|
|
|
|
using GTAOnlineCasinoHelper.Views;
|
2019-08-21 07:33:35 +02:00
|
|
|
|
using GTAOnlineCasinoHelper.Windows;
|
2019-08-20 22:28:25 +02:00
|
|
|
|
using MahApps.Metro;
|
|
|
|
|
using MahApps.Metro.Controls;
|
|
|
|
|
using MahApps.Metro.Controls.Dialogs;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Globalization;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
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 GTAOnlineCasinoHelper
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Interaction logic for MainWindow.xaml
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class MainWindow : MetroWindow
|
|
|
|
|
{
|
|
|
|
|
public static MainWindow Instance { get; set; }
|
2021-03-17 23:29:49 +01:00
|
|
|
|
public static CeoVehicleInventory CeoVehicleInventory { get; set; }
|
2019-08-20 22:28:25 +02:00
|
|
|
|
|
|
|
|
|
public MainWindow()
|
|
|
|
|
{
|
|
|
|
|
Instance = this;
|
|
|
|
|
InitializeComponent();
|
2019-08-21 07:33:35 +02:00
|
|
|
|
this.Icon = Properties.Resources.GTA5.GetBitmapSource();
|
2019-08-20 22:28:25 +02:00
|
|
|
|
LoadTheme();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void LoadTheme()
|
|
|
|
|
{
|
|
|
|
|
string baseColor = Properties.Settings.Default.ThemeBaseColor;
|
|
|
|
|
if (baseColor == null || baseColor.Equals(string.Empty))
|
|
|
|
|
{
|
|
|
|
|
baseColor = "Dark";
|
|
|
|
|
}
|
|
|
|
|
string colorScheme = Properties.Settings.Default.ThemeColorScheme;
|
|
|
|
|
if (colorScheme == null || colorScheme.Equals(string.Empty))
|
|
|
|
|
{
|
|
|
|
|
colorScheme = "Teal";
|
|
|
|
|
}
|
|
|
|
|
ThemeManager.ChangeTheme(Application.Current, baseColor, colorScheme);
|
|
|
|
|
}
|
|
|
|
|
|
2019-08-21 07:33:35 +02:00
|
|
|
|
private void ButtonSettings_Click(object sender, RoutedEventArgs e)
|
2019-08-20 22:28:25 +02:00
|
|
|
|
{
|
|
|
|
|
new SettingsWindow().Show();
|
|
|
|
|
//await this.ShowMessageAsync("Not implemented yet", "Settings has not been implemented yet");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|