Ejemplo n.º 1
0
 private void newItemToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (FormCreateItem createform = new FormCreateItem(this.Tag.ToString()))
     {
         if (createform.ShowDialog() == DialogResult.OK)
         {
             this.InitializeItems();
         }
     }
 }
Ejemplo n.º 2
0
 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();
         }
     }
 }
Ejemplo n.º 3
0
 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();
         }
     }
 }