private void warModToolStripMenuItem_Click(object sender, EventArgs e) { if (warModToolStripMenuItem.Text == "War mod") { warModToolStripMenuItem.Text = "War mod - vypnut"; WarMode wm = new WarMode(); wm.ShowDialog(); if (wm.DialogResult == DialogResult.OK) { _jadro.SpustWarMod(wm.RefreshovaciCas, wm.MnozstvoNaqu); } if (wm.DialogResult == DialogResult.Cancel) { _jadro.VypniWarMod(); } } else if (warModToolStripMenuItem.Text == "War mod - vypnut") { warModToolStripMenuItem.Text = "War mod"; _jadro.VypniWarMod(); } }