Example #1
0
        private void nhapHangToolStripMenuItemNhapHang_Click(object sender, EventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormNhapHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormNhapHang fNhapHang = new FormNhapHang();
                fNhapHang.MdiParent = this;
                fNhapHang.Show();
            }
        }
Example #2
0
        private void NhapHangMoi_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormNhapHang));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormNhapHang fNhapHang = new FormNhapHang();
                fNhapHang.MdiParent = this;
                fNhapHang.Show();
            }
        }
Example #3
0
        private void btnTaoMoi_Click(object sender, EventArgs e)
        {
            FormNhapHang frm = (FormNhapHang)ThongTin.KiemTraTonTai(typeof(FormNhapHang), this.ParentForm);

            if (frm != null)
            {
                frm.taoMoi = true;
                frm.Activate();
            }
            else
            {
                FormNhapHang fNhapHang = new FormNhapHang();
                fNhapHang.taoMoi    = true;
                fNhapHang.MdiParent = this.ParentForm;
                fNhapHang.Show();
            }
        }