예제 #1
0
        private void itemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmItem item = new frmItem();

            item.MdiParent = this;
            item.Show();
        }
예제 #2
0
파일: Items.cs 프로젝트: GeeZeeS/OSales
 private void btnEditItem_Click(object sender, EventArgs e)
 {
     if (itemID != 0)
     {
         frmItem form = new frmItem(itemID, this);
         form.Show();
     }
     else
     {
         MessageBox.Show("Please Select Item to Edit");
     }
 }
 private void itemToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (!itemFormOpen)
     {
         frmItem item = new frmItem();
         item.MdiParent     = this;
         item.StartPosition = FormStartPosition.CenterScreen;
         item.WindowState   = FormWindowState.Maximized;
         item.Show();
         itemFormOpen = true;
     }
     else
     {
         if (Application.OpenForms.OfType <frmItem>().Count() == 1)
         {
             Application.OpenForms.OfType <frmItem>().First().BringToFront();
         }
     }
 }
예제 #4
0
파일: Items.cs 프로젝트: GeeZeeS/OSales
        private void btnCreateItem_Click(object sender, EventArgs e)
        {
            frmItem form = new frmItem(0, this);

            form.Show();
        }