Exemplo n.º 1
0
        private void btnHocVan_Click(object sender, EventArgs e)
        {
            FrmTrinhDo f = new FrmTrinhDo();

            AddNewTab(f, 9);
            f.setTab(clstab.current());
            f.change = new ChangeStateButton(changeButton);
            f.ShowEditAnDeleteButton();
        }
Exemplo n.º 2
0
 private void btnThemTD_Click(object sender, EventArgs e)
 {
     if (tab.action != ActionForm.KHONG)
     {
         FrmTrinhDo frm = new FrmTrinhDo(((DataItem)cbbTrinhDo.SelectedItem).Value);
         if (frm.ShowDialog() == DialogResult.Cancel)
         {
             if (frm.isChangeData)
             {
                 UpdatecbbTrinhDo(frm.CurrentRowSelected);
             }
             else
             {
                 if (frm.CurrentRowSelected != null)
                 {
                     cbbTrinhDo.SelectedValue = frm.CurrentRowSelected;
                 }
             }
         }
     }
 }