private void добавитьГруппуToolStripMenuItem_Click(object sender, EventArgs e) { FormGroup AddGroup = new FormGroup(true, -1); AddGroup.Owner = this; AddGroup.ShowDialog(); GroupUpdate(); }
private void редактироватьГруппуToolStripMenuItem_Click(object sender, EventArgs e) { int KeyGroup = -1; if ((listViewGroups.SelectedItems.Count > 0) && ((int)listViewGroups.SelectedItems[0].Tag >= 0)) { KeyGroup = (int)listViewGroups.SelectedItems[0].Tag; } if (KeyGroup >= 0) { FormGroup AddGroup = new FormGroup(false, KeyGroup); AddGroup.Owner = this; AddGroup.ShowDialog(); GroupUpdate(); DateUpdate(); } }