示例#1
0
        private void NewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form createForm = new FormCreateGroup();

            if (createForm.ShowDialog() == DialogResult.OK)
            {
                CloseAllMDIWindows();
                InitializeMDI();
            }
        }
示例#2
0
        private void propertiesToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form createForm = new FormCreateGroup(this.Tag.ToString());

            if (createForm.ShowDialog() == DialogResult.OK)
            {
                DataTable db = new DataTable();
                db        = data.SendQueryWithReturn("SELECT * FROM groups WHERE id = '" + this.Tag.ToString() + "';");
                this.Text = db.Rows[0][1].ToString();
                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();
         }
     }
 }