/// <summary> /// Adding new department /// </summary> public void AddDepartment() { if (view.BasicSalaryDep != 0) { model.AddDepartment(view.NameDep, view.LocationDep, view.BasicSalaryDep); } else { MessageBox.Show("Basic salary field can be a number only"); } RefreshDepListCB(); }