private void newItemToolStripMenuItem_Click(object sender, EventArgs e) { using (FormCreateItem createform = new FormCreateItem(this.Tag.ToString())) { if (createform.ShowDialog() == DialogResult.OK) { this.InitializeItems(); } } }
private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) { using (FormCreateItem createform = new FormCreateItem(this.Tag.ToString(), this.listViewMain.SelectedItems[0].Tag.ToString())) { if (createform.ShowDialog() == DialogResult.OK) { InitializeItems(); } } }
private void PropertiesToolStripMenuItem_Click(object sender, EventArgs e) { if (((FormChild)this.ActiveMdiChild).listViewMain.SelectedItems.Count > 0) { using (FormCreateItem createform = new FormCreateItem(this.ActiveMdiChild.Tag.ToString(), ((FormChild)this.ActiveMdiChild).listViewMain.SelectedItems[0].Tag.ToString())) { if (createform.ShowDialog() == DialogResult.OK) { ((FormChild)this.ActiveMdiChild).InitializeItems(); } } } else { Form createForm = new FormCreateGroup(this.ActiveMdiChild.Tag.ToString()); if (createForm.ShowDialog() == DialogResult.OK) { CloseAllMDIWindows(); InitializeMDI(); } } }