Exemple #1
0
        // MDI frmHoaDonXuat
        void MoFormHoaDonXuat()
        {
            Form frm = KiemTraFormTonTai(typeof(frmHoaDonXuat));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmHoaDonXuat m_frmHoaDonThanhToan = new frmHoaDonXuat(_tenTK);
                m_frmHoaDonThanhToan.MdiParent = this;
                m_frmHoaDonThanhToan.Dock      = DockStyle.Fill;
                m_frmHoaDonThanhToan.Show();
            }
        }
 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();
     }
 }
Exemple #3
0
 private void frmHoaDonXuat_FormClosed(object sender, FormClosedEventArgs e)
 {
     _Instance = null;
 }