예제 #1
0
        private void xuatHangToolStripMenuItemQLLoaiPhieuXuat_Click(object sender, EventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormQuanLyLoaiPhieuXuat));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                FormQuanLyLoaiPhieuXuat fQLLoaiPhieuXuat = new FormQuanLyLoaiPhieuXuat();
                fQLLoaiPhieuXuat.MdiParent = this;
                fQLLoaiPhieuXuat.Show();
            }
        }
예제 #2
0
        private void LoaiPhieuXuat_barButtonItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Form frm = KiemTraTonTai(typeof(FormQuanLyLoaiPhieuXuat));

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