public void SaveState(TimeTableMemento timeTable) { var weeks = new List <Week> { timeTable.FirstWeek, timeTable.SecondWeek }; _dbHelper.Save(weeks); }
private void SaveState() { var tableMemento = new TimeTableMemento(FirstWeek, SecondWeek); _timeTableCaretaker.SaveState(tableMemento); }
public void SaveState(TimeTableMemento timeTable) { var weeks = new List<Week> {timeTable.FirstWeek, timeTable.SecondWeek}; _dbHelper.Save(weeks); }
public void SaveState(Project.Project project) { _currentMemento = project.GetMemento(); }