/// <summary> /// Changes the Salary of the User /// </summary> /// <param name="_newSalaryType"></param> public void ChangeSalaryType(SalaryType _newSalaryType) { // set the new value SalaryType = _newSalaryType; // recalculate the shifts ShiftScheduler.Calculate(); }
/// <summary> /// Changes the max revenue for this user /// </summary> /// <param name="_newMaxRevenue"></param> public void ChangeMaxRevenue(float _newMaxRevenue) { // set the new value MaxRevenue = _newMaxRevenue; // recalculate the shifts ShiftScheduler.Calculate(); }
private void AutoLoad() { string fullPath = System.IO.Path.GetFullPath(saveFile); if (File.Exists(fullPath)) { using (Stream stream = File.Open(fullPath, FileMode.Open)) { ShiftScheduler.Load(stream); } } }