コード例 #1
0
 private void SaveExecute()
 {
     try
     {
         if (Number <= 1 || Number > 1000)
         {
             MessageBox.Show("X must be in range of (1, 1000).");
             return;
         }
         employee.Salary = salaryCalculation().ToString();
         serviceEmployee.EditEmployee(Employee);
         isUpdateEmployee = true;
         salary.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }