Пример #1
0
        public void BtnHoadon_Click(object sender, EventArgs e)
        {
            //
            frmMain frmMain = (frmMain)frmMain.ActiveForm;

            frmMain.panelBangDieuKhien.Controls.Clear();
            frmMain.panelNhiepvu.Controls.Clear();
            frmMain.panelMain.Controls.Clear();
            frmMain.panelKetquaTimKiem.Controls.Clear();
            frmMain.panelChucnang.Controls.Clear();
            //
            frmMenuHoaDon formMenuHoaDon = new frmMenuHoaDon()
            {
                TopLevel        = false,
                AutoScroll      = false,
                FormBorderStyle = FormBorderStyle.None,
                Dock            = DockStyle.Fill
            };

            frmMain.panelBangDieuKhien.Controls.Add(formMenuHoaDon);
            frmMain.lbTieude.Text      = btnHoadon.Text;
            frmMain.ptbTieude.Image    = btnHoadon.Image;
            frmMain.lbThongbao.Visible = true;
            formMenuHoaDon.Show();
            formMenuHoaDon.BtnHDN_Click(sender, e);
        }
Пример #2
0
        private void hóaĐơnBánToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmMenuHoaDon frm = new frmMenuHoaDon();

            frm.btnHDB_Click(sender, e);
        }