示例#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;
                 }
             }
         }
     }
 }