public ThoughtRecordDisplayModel(IDatabaseService db)
 {
     database             = db;
     thoughtRecordService = new ThoughtRecordService();
     stringLoader         = new StringResourceService("PageTitles");
     Title         = stringLoader.GetString("MyThoughtRecordsTitle");
     SectionTitles = thoughtRecordService.GetTitleModel();
 }
 public ThoughtRecordEditModel(IDatabaseService db)
 {
     stringLoader           = new StringResourceService("PageTitles");
     newThoughtRecordTitle  = stringLoader.GetString("NewThoughtRecordPageTitle");
     editThoughtRecordTitle = stringLoader.GetString("EditThoughtRecordPageTitle");
     thoughtRecordService   = new ThoughtRecordService();
     SectionTitles          = thoughtRecordService.GetTitleModel();
     database = db;
     CreateNewThoughtRecord();
     commandsEnabled    = true;
     IsCurrentDataSaved = true;
 }
 public ThoughtRecordEditModel(int thoughtRecordId, IDatabaseService db)
 {
     stringLoader           = new StringResourceService("PageTitles");
     newThoughtRecordTitle  = stringLoader.GetString("NewThoughtRecordPageTitle");
     editThoughtRecordTitle = stringLoader.GetString("EditThoughtRecordPageTitle");
     Title = editThoughtRecordTitle;
     thoughtRecordService = new ThoughtRecordService();
     SectionTitles        = thoughtRecordService.GetTitleModel();
     database             = db;
     InitializeThoughtRecord(thoughtRecordId);
     DefaultInputText = thoughtRecordService.GetDefaultInputText();
     commandsEnabled  = true;
 }