private void specB_Click(object sender, EventArgs e) { specVlast spec = new specVlast(predmet, opravy); if (spec.ShowDialog() == DialogResult.OK) { opravy = spec.opravy; } }
private void changeSpecial_Click(object sender, EventArgs e) { Predmet p = (Predmet)((ToolStripItem)sender).Tag; specVlast dialog = new specVlast(p); if (dialog.ShowDialog() == DialogResult.OK) { p.setOpravy(dialog.opravy); Program.getMainForm().setNew(postava); } }