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

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormQuanLyDonHang fQLDonHang = new FormQuanLyDonHang();
                fQLDonHang.MdiParent = this;
                fQLDonHang.Show();
            }
        }
Esempio n. 2
0
        //Chuyển sang quản lý đơn hàng
        private void btnTimDonHang_Click(object sender, EventArgs e)
        {
            Form frm = ThongTin.KiemTraTonTai(typeof(FormQuanLyDonHang), this.ParentForm);

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormQuanLyDonHang fQLDonHang = new FormQuanLyDonHang();
                fQLDonHang.MdiParent = this.ParentForm;
                fQLDonHang.Show();
            }
        }
Esempio n. 3
0
        private void QuanLyDonHang_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormQuanLyDonHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormQuanLyDonHang fQuanLyDonHang = new FormQuanLyDonHang();
                fQuanLyDonHang.MdiParent = this;
                fQuanLyDonHang.Show();
            }
        }