public void EditEntry([NotNull] DreamEntry entry) { if (entry == null) { throw new ArgumentNullException(nameof(entry)); } var editEntry = new FrmDreamEntry(entry, _dreamDiary.GetDreamTagStatistics().GetStatistics()); editEntry.ShowDialog(); PersistDiary(); }
private DreamStatisticsViewModel GetDreamStatisticsViewModel() { var dreamTagStatisticsGenerator = _viewModel.GetDreamTagStatistics(); return(new DreamStatisticsViewModel(dreamTagStatisticsGenerator.GetStatistics(), new DreamCountSummary(dreamTagStatisticsGenerator.TotalEntries, dreamTagStatisticsGenerator.TotalDays))); }