コード例 #1
0
        private void nhapHangToolStripMenuItemQLNhapHang_Click(object sender, EventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormQuanLyNhapHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormQuanLyNhapHang fQLNhapHang = new FormQuanLyNhapHang();
                fQLNhapHang.MdiParent = this;
                fQLNhapHang.Show();
            }
        }
コード例 #2
0
        private void btnTimPhieuNhap_Click(object sender, EventArgs e)//Nút Chuyển Qua Form Quản Lý Nhập Hàng
        {
            Form frm = ThongTin.KiemTraTonTai(typeof(FormQuanLyNhapHang), this.ParentForm);

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormQuanLyNhapHang fQLDonHang = new FormQuanLyNhapHang();
                fQLDonHang.MdiParent = this.ParentForm;
                fQLDonHang.Show();
            }
        }
コード例 #3
0
        private void QuanLyNhapHang_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormQuanLyNhapHang));

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