Ejemplo n.º 1
0
 private void btnAddLoaiNL_Click(object sender, EventArgs e)
 {
     _frmLoaiNL           = new frmLoaiNguyenLieu(_tenTK, 1);
     _frmLoaiNL.MdiParent = this.MdiParent;
     _frmLoaiNL.Dock      = DockStyle.Fill;
     _frmLoaiNL.Show();
     this.Hide();
 }
Ejemplo n.º 2
0
        // MDI frmLoaiNguyenLieu
        void MoFormLoaiNguyenLieu()
        {
            Form frm = KiemTraFormTonTai(typeof(frmLoaiNguyenLieu));

            if (frm != null)
            {
                frm.Activate();
            }
            else
            {
                frmLoaiNguyenLieu m_frmHoaDonThanhToan = frmLoaiNguyenLieu.Instance;
                m_frmHoaDonThanhToan.MdiParent = this;
                m_frmHoaDonThanhToan.Dock      = DockStyle.Fill;
                m_frmHoaDonThanhToan.Show();
            }
        }