/// <summary> /// Сохраняет сделанные изменения в модели /// </summary> public void ApplyChanges(string name, int groupId, int headId, DateTime date, uint baseSalary) { if (Model.GetCurrentDate() > date) { Model.EditRecord(Id, name, (PersonGroup)groupId, date, headId, baseSalary); Model.RecalculateSalaries(); MainPresenter.UpdateTable(); } else { ErrHandler.ShowError(ErrorType.InvalidRecDate); } }