public MainWindow()
        {
            SetupExceptionHandling();
            InitializeComponent();

            gamesOnSdCard = new List <GameOnSd>();

            currentVersion = new Version(File.ReadAllText(@".\VERSION"));

            DriveInfo[] allDrives = DriveInfo.GetDrives();
            SdFolderComboBox.ItemsSource = allDrives.Select(d => d.Name);

            config = UgdegmConfiguration.LoadConfiguration(ConfigurationPath);
            LoadDefaultPaths();

            PcFolderTextBox.TextChanged       += OnFolderOrDriveChanged;
            SdFolderComboBox.SelectionChanged += OnFolderOrDriveChanged;
            SdFolderComboBox.SelectionChanged += OnDriveChanged;

            // Initialization for the expanders
            starHeight    = new GridLength[GamesExpanderGrid.RowDefinitions.Count];
            starHeight[0] = GamesExpanderGrid.RowDefinitions[0].Height;
            starHeight[2] = GamesExpanderGrid.RowDefinitions[2].Height;
            ExpandedOrCollapsedRow(FoldersExpander);
            ExpandedOrCollapsedRow(GamesExpander);
            FoldersExpander.Expanded  += ExpandedOrCollapsedRow;
            FoldersExpander.Collapsed += ExpandedOrCollapsedRow;
            GamesExpander.Expanded    += ExpandedOrCollapsedRow;
            GamesExpander.Collapsed   += ExpandedOrCollapsedRow;

            AddHandler(GridViewColumnHeader.ClickEvent, new RoutedEventHandler(ListView_OnColumnClick));

            Title += " - " + currentVersion;
            CheckUpdate();
        }
        public MainWindow()
        {
            SetupExceptionHandling();
            InitializeComponent();

            gamesOnSdCard = new List <GameOnSd>();

            currentVersion = new Version(File.ReadAllText(@".\VERSION"));
            config         = UgdegmConfiguration.LoadConfiguration(ConfigurationPath);

            LoadDefaultPaths();

            DriveInfo[] allDrives = DriveInfo.GetDrives();
            SdFolderComboBox.ItemsSource = allDrives.Select(d => d.Name);

            PcFolderTextBox.TextChanged       += OnFolderOrDriveChanged;
            SdFolderComboBox.SelectionChanged += OnFolderOrDriveChanged;
            SdFolderComboBox.SelectionChanged += OnDriveChanged;

            Title += " - " + currentVersion;
            CheckUpdate();
        }