Beispiel #1
0
 private void addToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (pnMain.Controls["CRAddCategory"] == null)
     {
         pnMain.Controls.Clear();
         CRAddCategory frmaddcategory = new CRAddCategory();
         frmaddcategory.TopLevel = false;
         pnMain.Controls.Add(frmaddcategory);
         frmaddcategory.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frmaddcategory.Dock            = DockStyle.Fill;
         frmaddcategory.Show();
     }
 }
Beispiel #2
0
 private void addToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (pnMain.Controls["CRAddCategory"] == null)
     {
         pnMain.Controls.Clear();
         CRAddCategory frmaddcategory = new CRAddCategory();
         frmaddcategory.TopLevel = false;
         pnMain.Controls.Add(frmaddcategory);
         frmaddcategory.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
         frmaddcategory.Dock = DockStyle.Fill;
         frmaddcategory.Show();
     }
 }