コード例 #1
0
        public void SaveState(TimeTableMemento timeTable)
        {
            var weeks = new List <Week> {
                timeTable.FirstWeek, timeTable.SecondWeek
            };

            _dbHelper.Save(weeks);
        }
コード例 #2
0
 private void SaveState()
 {
     var tableMemento = new TimeTableMemento(FirstWeek, SecondWeek);
     _timeTableCaretaker.SaveState(tableMemento);
 }
コード例 #3
0
 public void SaveState(TimeTableMemento timeTable)
 {
     var weeks = new List<Week> {timeTable.FirstWeek, timeTable.SecondWeek};
     _dbHelper.Save(weeks);
 }
コード例 #4
0
 public void SaveState(Project.Project project)
 {
     _currentMemento = project.GetMemento();
 }