コード例 #1
0
ファイル: FormChild.cs プロジェクト: veselcraft/progman
 private void newItemToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (FormCreateItem createform = new FormCreateItem(this.Tag.ToString()))
     {
         if (createform.ShowDialog() == DialogResult.OK)
         {
             this.InitializeItems();
         }
     }
 }
コード例 #2
0
ファイル: FormChild.cs プロジェクト: veselcraft/progman
 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();
         }
     }
 }
コード例 #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();
         }
     }
 }