private void windowsScanBtn_Click(object sender, RoutedEventArgs e) { if(gamePathTxt.Text=="") { showError("I'm not psychic","You need to specify the install folder for the game."); return; } if(gameSaveTxt.Text=="") { showError("I'm not clairvoyant","You need to specify the folder that contains the game's saves."); return; } SearchingWindow searcher = new SearchingWindow(gamePathTxt.Text,gameSaveTxt.Text,gameNameTxt.Text,false,this); searcher.ShowInTaskbar = true; this.Visibility = System.Windows.Visibility.Hidden; if((bool)searcher.ShowDialog()) { ReportWindow report = new ReportWindow(searcher.output.ToString(),gameNameTxt.Text,this); report.ShowDialog(); } this.Visibility = System.Windows.Visibility.Visible; }
private void playstationScanButton_Click(object sender, RoutedEventArgs e) { if(psPrefixTxt.Text==""||psSuffixTxt.Text=="") { showError("I'm not psychic","You need to specify but the prefix and suffix of the game's code."); return; } if(psGameSavePathTxt.Text=="") { showError("I'm not omniscient","You need to specify the folder that contains the game's saves."); return; } SearchingWindow searcher = new SearchingWindow(null, psGameSavePathTxt.Text, gameNameTxt.Text, true, this); if((bool)searcher.ShowDialog()) { ReportWindow report = new ReportWindow(searcher.output + Environment.NewLine + "Playstation Code: " + psPrefixTxt.Text + "-" + psSuffixTxt.Text,psGameSavePathTxt.Text,this); report.ShowDialog(); } }