Beispiel #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            bool isFileDownloaded = TableCheker.Check();

            if (isFileDownloaded)
            {
                MainMenu mainMenu = new MainMenu();
                mainMenu.Show();
            }
            else
            {
                BeginDownloadWindow downloadWindow = new BeginDownloadWindow();
                downloadWindow.Show();
            }

            this.Close();
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            bool isFileDownloaded = TableCheker.Check();

            if (isFileDownloaded)
            {
                RecourceHandler.fullRecords = Parser.FillFullCollection(RecourceHandler.originalPath);
                MainMenu mainMenu = new MainMenu();
                mainMenu.Show();
            }
            else
            {
                BeginDownloadWindow downloadWindow = new BeginDownloadWindow();
                downloadWindow.Show();
            }

            this.Close();
        }