Пример #1
0
 public basicEvent()
 {
     this.InitializeComponent();
     eventList = EventsManager.getBasicEvents();
     eventList.CollectionChanged += EventList_CollectionChanged;
     CheckVisibility.CheckButtonGridVisibility(eventList, ButtonGrid);
 }
Пример #2
0
 private void EventList_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
 {
     if (ViewModel.EventList != null)
     {
         int eventsNum = ViewModel.EventList.Count;
         CheckVisibility.CheckButtonGridVisibility(eventsNum, ButtonGrid);
         EmptyEventBlock.Visibility = (eventsNum == 0) ? Visibility.Visible : Visibility.Collapsed;
     }
 }
Пример #3
0
 private void Page_Loaded(object sender, RoutedEventArgs e)
 {
     ViewModel.EventList = EventsManager.GetEventsByFoldIndex(foldIndex);
     ViewModel.EventList.CollectionChanged += EventList_CollectionChanged;
     if (ViewModel.EventList != null)
     {
         int eventsNum = ViewModel.EventList.Count;
         CheckVisibility.CheckButtonGridVisibility(eventsNum, ButtonGrid);
         EmptyEventBlock.Visibility = (eventsNum == 0) ? Visibility.Visible : Visibility.Collapsed;
     }
 }
Пример #4
0
 private void EventList_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
 {
     CheckVisibility.CheckButtonGridVisibility(eventList, ButtonGrid);
 }