private void UpdateSelectedDates()
 {
     if (!updatingSelectedDates)
     {
         updatingSelectedDates = true;
         SetSelectedDates(_calendar, _calendar.SelectedDates);
         ViewUserControlViewModel.GetInstance().UpdateTransactions(_calendar.SelectedDates);
         Debug.WriteLine("Selected Dates are:");
         foreach (DateTime selectedDate in _calendar.SelectedDates)
         {
             Debug.WriteLine(selectedDate.ToShortDateString());
         }
         updatingSelectedDates = false;
     }
 }
Exemple #2
0
 public ViewUserControl()
 {
     InitializeComponent();
     DataContext = ViewUserControlViewModel.GetInstance();
 }