예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
 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();
     }
 }