private void YES(object sender, RoutedEventArgs e) { Uploader.DownloadFile(); RecourceHandler.fullRecords = Parser.FillFullCollection(RecourceHandler.originalPath); if (Uploader.success) { MainMenu mainMenu = new MainMenu(); mainMenu.Show(); this.Close(); } else { StartWindow startWindow = new StartWindow(); startWindow.Show(); this.Close(); } }