private void MainCalendar_SelectedDatesChanged(CalendarView sender, CalendarViewSelectedDatesChangedEventArgs args) { while (rootPivot.Items.Count > 1) { rootPivot.Items.RemoveAt(rootPivot.Items.Count - 1); } currentJournalEntries.Clear(); YMFolder = MainCalendar.SelectedDates[0].ToString("yyyy-MM"); LoadEntriesByDate(); }
private void MainCalendar_SelectedDatesChanged(CalendarView sender, CalendarViewSelectedDatesChangedEventArgs args) { while (rootPivot.Items.Count > 1) { rootPivot.Items.RemoveAt(rootPivot.Items.Count - 1); } MainRichEdit.Document.SetText(TextSetOptions.ApplyRtfDocumentDefaults, ""); currentJournalEntries.Clear(); YMDDate = MainCalendar.SelectedDates[0].ToString("yyyy-MM-dd"); LoadEntriesByDate(); }
private void InitializeEntryItems() { while (rootPivot.Items.Count > 1) { rootPivot.Items.RemoveAt(rootPivot.Items.Count - 1); } MainRichEdit.Document.SetText(TextSetOptions.ApplyRtfDocumentDefaults, ""); currentJournalEntries.Clear(); if (MainCalendar.SelectedDates.Count > 0) { YMDDate = MainCalendar.SelectedDates[0].ToString("yyyy-MM-dd"); LoadEntriesByDate(); InitializeEntriesListView(); } }