예제 #1
0
파일: FrmMain.cs 프로젝트: Kimsooah/QLNS
        private void btnLuong_Click(object sender, EventArgs e)
        {
            FrmLuong f = new FrmLuong();

            AddNewTab(f, 7);
            f.setTab(clstab.current());
            f.change = new ChangeStateButton(changeButton);
            f.ShowEditAnDeleteButton();
        }
예제 #2
0
 private void btnThemLuong_Click(object sender, EventArgs e)
 {
     if (tab.action != ActionForm.KHONG)
     {
         FrmLuong frm = new FrmLuong(((DataItem)cbbLuong.SelectedItem).Value);
         if (frm.ShowDialog() == DialogResult.Cancel)
         {
             if (frm.isChangeData)
             {
                 UpdatecbbLuong(frm.CurrentRowSelected);
             }
             else
             {
                 if (frm.CurrentRowSelected != null)
                 {
                     cbbLuong.SelectedValue = frm.CurrentRowSelected;
                 }
             }
         }
     }
 }