Inheritance: TerminalModule
 private bool ButtonConfirmEvent(string btn)
 {
     Configuration.Global.SetValue("mbc_match_rounds", roundsNumberControl.Value.ToString());
     var match = new ClassicMatch();
     match.PlayerCreate(red);
     match.PlayerCreate(blue);
     CompetitionRun runner = new CompetitionRun(match, millisecondControl.Value, showBoards.IsChecked);
     BattleshipConsole.AddModule(runner);
     BattleshipConsole.RemoveModule(this);
     BattleshipConsole.UpdateDisplay();
     runner.Begin();
     return true;
 }
Exemple #2
0
        private bool ButtonConfirmEvent(string btn)
        {
            Configuration.Global.SetValue("mbc_match_rounds", roundsNumberControl.Value.ToString());
            var match = new ClassicMatch();

            match.PlayerCreate(red);
            match.PlayerCreate(blue);
            CompetitionRun runner = new CompetitionRun(match, millisecondControl.Value, showBoards.IsChecked);

            BattleshipConsole.AddModule(runner);
            BattleshipConsole.RemoveModule(this);
            BattleshipConsole.UpdateDisplay();
            runner.Begin();
            return(true);
        }