private void purchasingToolStripMenuItem_Click(object sender, EventArgs e) { frmPurchase f = new frmPurchase(); f.MdiParent = this; f.Show(); }
private void tsPurchase_Click(object sender, EventArgs e) { bool IsOpen = false; int tabcount = 0; foreach (Form f in Application.OpenForms) { if (f.Text == "Purchase") { tabForms.SelectedTab = tabForms.TabPages[tabcount - 2]; IsOpen = true; f.Focus(); break; } tabcount++; } if (IsOpen == false) { frmPurchase frm = new frmPurchase(); frm.FormBorderStyle = FormBorderStyle.None; frm.StartPosition = FormStartPosition.Manual; frm.Location = new Point((this.Width - frm.Width) / 2, this.Location.Y + (this.Height - frm.Height) / 2); this.pnlMain.Visible = false; frm.MdiParent = this; frm.Show(); } }
private void btnPurchase_Click(object sender, EventArgs e) { if (!Application.OpenForms.OfType <frmPurchase>().Any()) { frmPurchase purchase = new frmPurchase(); purchase.Show(); } }
private void purchaseToolStripMenuItem_Click(object sender, EventArgs e) { if (purchase.IsDisposed) { purchase = new frmPurchase(); } purchase.MdiParent = this; purchase.Show(); purchase.BringToFront(); }
private void btnPuchase_Click(object sender, EventArgs e) { frmPurchase objPur = new frmPurchase(); ShowForm(objPur); }
private void bbPurchaseProduct_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmPurchase frm = new frmPurchase(); frm.ShowDialog(); }
private void addPurchaseBillToolStripMenuItem_Click(object sender, EventArgs e) { frmPurchase purchase = new frmPurchase(); purchase.Show(); }
//This is the button used to open the Purchase application. //========================================================= private void btnPurchase_Click(object sender, EventArgs e) { frmPurchase Purchase = new frmPurchase(); Purchase.Show(); }