public ViewDocumentWindow(Project project) { _dbHelper = project.DbHelper; _timeTableCaretaker = project.TimeTableCaretaker; InitializeComponent(); DataContext = this; var state = _timeTableCaretaker.GetState(); FirstWeek = state.FirstWeek; SecondWeek = state.SecondWeek; }
public TimeTableCaretaker(DbHelperBase dbHelper) { _dbHelper = dbHelper; }
public void SetDbHelper(DbHelperBase dbHelper) { Result.DbHelper = dbHelper; }