Beispiel #1
0
 private void btnSanPham_Click(object sender, EventArgs e)
 {
     panMain.Controls.Clear();
     _ucSanPham = new ucSanPham();
     panMain.Controls.Add(_ucSanPham);
     _ucSanPham.Dock = DockStyle.Fill;
 }
Beispiel #2
0
 private void ucHangHoa_Load(object sender, EventArgs e)
 {
     panMain.Controls.Clear();
     _ucSanPham = new ucSanPham();
     panMain.Controls.Add(_ucSanPham);
     _ucSanPham.Dock = DockStyle.Fill;
 }
Beispiel #3
0
        private void mnQuanLySanPham_Click(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            ucSanPham banhang = new ucSanPham();

            panel1.Controls.Add(banhang);

            banhang.Dock = DockStyle.Fill;
            banhang.BringToFront();
        }