Esempio n. 1
0
 private void dgvNCC_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex == dgvNCC.Rows.Count - 1)
     {
         frmChitietNhacungcap f1 = new frmChitietNhacungcap();
         Handling.FormHandling.PreventFormMultipleTimes("Nhà Cung Cấp", f1, "Nhà cung cấp");
     }
 }
Esempio n. 2
0
        public void btnList_Click(object sender, EventArgs e)
        {
            //
            frmMain formMain = (frmMain)frmMain.ActiveForm;

            formMain.panelKetquaTimKiem.Controls.Clear();
            formMain.panelNhiepvu.Controls.Clear();
            formMain.panelMain.Controls.Clear();
            formMain.panelChucnang.Controls.Clear();
            //
            frmTimkiemNhacungcap frmTimkiemNhacungcap = new frmTimkiemNhacungcap();

            frmTimkiemNhacungcap.gbxTimkiem.Dock = DockStyle.Fill;
            formMain.panelNhiepvu.Controls.Add(frmTimkiemNhacungcap.gbxTimkiem);
            //
            frmChitietNhacungcap frmChitietNhacungcap = new frmChitietNhacungcap();

            frmChitietNhacungcap.gbxChitiet.Dock = DockStyle.Fill;
            formMain.panelMain.Controls.Add(frmChitietNhacungcap.gbxChitiet);
            //

            //
        }
Esempio n. 3
0
        private void lblIntoNCC_Click(object sender, EventArgs e)
        {
            frmChitietNhacungcap f1 = new frmChitietNhacungcap();

            Handling.FormHandling.PreventFormMultipleTimes(f1, "Nhà cung cấp");
        }