示例#1
0
        protected void gameSubmissionDone(object sender, RunWorkerCompletedEventArgs e)
        {
            if (e.Cancelled) {
                this.enableInterface();
                return;
            }

            ReportWindow report = new ReportWindow(analyzer, this);
            report.ShowDialog();
            if (report.SentOrSaved) {
                analyzer.game.Submitted = true;
                Games.saveCustomGames();
            }
            if (askAboutGame())
                return;

            submitGame.IsEnabled = Games.HasUnsubmittedGames;

            this.enableInterface();
        }
示例#2
0
 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;
 }
示例#3
0
 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();
     }
 }