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(); }
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; }