Ejemplo n.º 1
0
        public void SaveState(TimeTableMemento timeTable)
        {
            var weeks = new List <Week> {
                timeTable.FirstWeek, timeTable.SecondWeek
            };

            _dbHelper.Save(weeks);
        }
Ejemplo n.º 2
0
        private void ExcelExportButton_Click(object sender, RoutedEventArgs e)
        {
            var weeks = new List <Week> {
                FirstWeek, SecondWeek
            };

            _dbHelper.Save(weeks);
        }