コード例 #1
0
ファイル: GameBoardView.cs プロジェクト: theradeonxt/yoloth
        private void startNewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var killRulesView = new KillRulesView();
            var killRulesController = new KillRuleController(killRulesView, plane);
            if (killRulesView.ShowDialog() == DialogResult.OK)
            {
                if (killRulesController.KillPoints.Count > 0)
                {
                    MessageBox.Show("A OK");
                }
                else
                {

                }
            }

               // _controller.StartNewGame();
        }
コード例 #2
0
        public void SetKillRules()
        {
            if (_network == null) return;
            if (_network.ConnectionType != ConnectionType.Server) return;

            var killRulesView = new KillRulesView();
            var killRulesController = new KillRulesController(killRulesView, _planeTemplate);
            if (killRulesView.ShowDialog() != DialogResult.OK) return;
            _planeTemplate = killRulesController.Plane;
        }