Example #1
0
 public void RefreshTable()
 {
     WrapP.Children.Clear();
     foreach (var item in NoteProxy.NotesPr)
     {
         NoteUserControl noteUC = new NoteUserControl(item, this);
         WrapP.Children.Add(noteUC);
     }
 }
Example #2
0
 private void DatePicker_SelectedDateChanged(object sender, SelectionChangedEventArgs e)
 {
     
     DateTime? date = Date.SelectedDate;
     if (date == null)
     {
     }
     else
     {
         Notes.Children.Clear();
         foreach (var item in NoteProxy.NotesPr)
         {
             if (item.DateNote == date.Value)
             {
                 NoteUserControl noteUC = new NoteUserControl(item, MW);
                 Notes.Children.Add(noteUC);
             }
         }
     }
 }