public ViewDocumentWindow(Project project)
        {
            _dbHelper = project.DbHelper;
            _timeTableCaretaker = project.TimeTableCaretaker;

            InitializeComponent();
            DataContext = this;
            var state = _timeTableCaretaker.GetState();
            FirstWeek = state.FirstWeek;
            SecondWeek = state.SecondWeek;
        }
        public ViewDocumentWindow(Project project)
        {
            _project = project;
            _excelHelper = project.ExcelHelper;
            _timeTableCaretaker = new TimeTableCaretaker();
            _timeTableCaretaker.SaveState(project);

            InitializeComponent();
            DataContext = this;

            FirstWeek = project.FirstWeek;
            SecondWeek = project.SecondWeek;
        }
Example #3
0
 public ProjectBuilder()
 {
     Result = new Project();
 }