Exemple #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            try
            {
                if (workingYearBindingSource.Count <= 0)
                {
                    return;
                }
                if (cmb.SelectedValue == null)
                {
                    return;
                }

                var guid = (Guid)cmb.SelectedValue;
                var frm  = new frmWorkingYearMain(guid);
                if (frm.ShowDialog(this) == DialogResult.OK)
                {
                    LoadData();
                }
            }
            catch (Exception ex)
            {
                WebErrorLog.ErrorInstence.StartErrorLog(ex);
            }
        }
Exemple #2
0
 private void btnCreate_Click(object sender, System.EventArgs e)
 {
     try
     {
         var frm = new frmWorkingYearMain();
         if (frm.ShowDialog(this) == DialogResult.OK)
         {
             LoadData();
         }
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }