Пример #1
0
        // MDI frmHoaDonNhap
        void MoFormHoaDonNhap()
        {
            Form frm = KiemTraFormTonTai(typeof(frmHoaDonNhap));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmHoaDonNhap m_frmHoaDonThanhToan = new frmHoaDonNhap(_tenTK);
                m_frmHoaDonThanhToan.MdiParent = this;
                m_frmHoaDonThanhToan.Dock      = DockStyle.Fill;
                m_frmHoaDonThanhToan.Show();
            }
        }
Пример #2
0
 private void FrmNguyenLieu_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (_staTus == 1)
     {
         frmHoaDonNhap frm = new frmHoaDonNhap(_tenTK);
         frm.MdiParent = this.MdiParent;
         frm.Dock      = DockStyle.Fill;
         frm.Show();
     }
     else if (_staTus == 2)
     {
         frmHoaDonXuat frm = new frmHoaDonXuat(_tenTK);
         frm.MdiParent = this.MdiParent;
         frm.Dock      = DockStyle.Fill;
         frm.Show();
     }
 }
Пример #3
0
 private void FrmNhaCC_FormClosing(object sender, FormClosingEventArgs e)
 {
     //_staTus = 1 tắt form mở form nguyên liệu
     //_staTus = 2 tắt form mở form hóa đơn nhập
     if (_staTus == 1)
     {
         frmNguyenLieu frm = new frmNguyenLieu(_tenTK, 0);
         frm.MdiParent = this.MdiParent;
         frm.Dock      = DockStyle.Fill;
         frm.Show();
     }
     else if (_staTus == 2)
     {
         frmHoaDonNhap frm = new frmHoaDonNhap(_tenTK);
         frm.MdiParent = this.MdiParent;
         frm.Dock      = DockStyle.Fill;
         frm.Show();
     }
 }
Пример #4
0
 private void frmHoaDonNhap_FormClosed(object sender, FormClosedEventArgs e)
 {
     _Instance = null;
 }