private void purchaseToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (purchase.IsDisposed)
     {
         purchase = new PurchaseForm();
     }
     purchase.MdiParent = this;
     purchase.Show();
     purchase.BringToFront();
 }
Beispiel #2
0
        private void PurchaseOrderButton_Click(object sender, EventArgs e)
        {
            var form = new PurchaseForm
            {
                MdiParent     = this,
                StartPosition = FormStartPosition.CenterScreen
            };

            form.Show();
        }
        private void showPurchaseForm()
        {
            this.PanelRightMain.Controls.Clear();
            PurchaseForm purchaseForm = new PurchaseForm();

            purchaseForm.TopLevel        = false;
            purchaseForm.Dock            = DockStyle.Fill;
            purchaseForm.FormBorderStyle = FormBorderStyle.None;
            PanelRightMain.Controls.Add(purchaseForm);
            purchaseForm.Show();
        }
Beispiel #4
0
        private void addPurchaseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PurchaseForm pForm = new PurchaseForm();

            pForm.Show();
        }