private void Loaded(object sender, RoutedEventArgs e)
 {
     ViewModel = ((CalendarVm)(MainGrid.DataContext));
     handler   = ViewModel.handler;
     handler.RefreshCalendarDictionary();
     CalendarItems = handler.CalendarDictionary;
     InitializeCalendarDate();
     initAnimations();
     BottomBarCalendarDate.ButtonShowEvent   += new EventHandler(ShowCalendarItem);
     BottomBarCalendarDate.ButtonDeleteEvent += new EventHandler(DeleteCalendarItem);
     ViewCalendarItem.ButtonCloseEvent       += new EventHandler(CloseCalendarItem);
 }
 public void Refresh()
 {
     handler.RefreshCalendarDictionary();
     CalendarItems = handler.CalendarDictionary;
     InitializeCalendarDate();
 }