Esempio n. 1
0
        private void donHangToolStripMenuItemTaoDonHang_Click(object sender, EventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormDonHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormDonHang fDonHang = new FormDonHang();
                fDonHang.MdiParent = this;
                fDonHang.Show();
            }
        }
Esempio n. 2
0
        private void DonHangMoi_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormDonHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormDonHang fDonHang = new FormDonHang();
                fDonHang.MdiParent = this;
                fDonHang.Show();
            }
        }
Esempio n. 3
0
        private void buttonTaoMoi_Click(object sender, EventArgs e)
        {
            Form frm = ThongTin.KiemTraTonTai(typeof(FormDonHang), this.ParentForm);

            if (frm != null)
            {
                FormDonHang f = (FormDonHang)frm;
                f.Status = 4;
                f.Activate();
            }
            else
            {
                FormDonHang fQLDonHang = new FormDonHang();
                fQLDonHang.MdiParent = this.ParentForm;
                fQLDonHang.Show();
            }
        }