Example #1
0
        private void purchasingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmPurchase f = new frmPurchase();

            f.MdiParent = this;
            f.Show();
        }
Example #2
0
        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();
            }
        }
Example #3
0
 private void btnPurchase_Click(object sender, EventArgs e)
 {
     if (!Application.OpenForms.OfType <frmPurchase>().Any())
     {
         frmPurchase purchase = new frmPurchase();
         purchase.Show();
     }
 }
Example #4
0
 private void purchaseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (purchase.IsDisposed)
     {
         purchase = new frmPurchase();
     }
     purchase.MdiParent = this;
     purchase.Show();
     purchase.BringToFront();
 }
Example #5
0
        private void btnPuchase_Click(object sender, EventArgs e)
        {
            frmPurchase objPur = new frmPurchase();

            ShowForm(objPur);
        }
Example #6
0
        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();
        }
Example #8
0
    //This is the button used to open the Purchase application.
    //=========================================================
    private void btnPurchase_Click(object sender, EventArgs e)
    {
        frmPurchase Purchase = new frmPurchase();

        Purchase.Show();
    }