private void Loaded(object sender, RoutedEventArgs e) { ViewModel = ((NotificationVm)(MainGrid.DataContext)); MainGrid.DataContext = ViewModel; handler = ViewModel.handler; BottomBarSaveItem.ButtonSaveEvent += new EventHandler(SaveNotification); }
private void Loaded(object sender, RoutedEventArgs e) { ViewModel = ((NotificationVm)(MainGrid.DataContext)); handler = ViewModel.handler; initAnimations(); BottomBarNotification.ButtonShowEvent += new EventHandler(ShowNotificationItem); ViewCalendarItem.ButtonCloseEvent += new EventHandler(CloseNotificationItem); PrimaryTopBorder.BorderBrush = new SolidColorBrush(HexToColor.GetColor("204c6a")); }
public PartialViewResult Index() { var model = new NotificationVm { MentorshipCnt = _mentorSrv.NewItemsCount, ConnectReqCnt = _connectSrv.GetNewConnectReq().Count, MessagesCnt = _msgSrv.NewItemsCount, DiscussionCnt = _discussionSrv.NewItemsCount, EventsCnt = _evetnSrv.NewItemsCount, }; return(PartialView(model)); }
private void Loaded(object sender, RoutedEventArgs e) { ViewModel = ((NotificationVm)(MainGrid.DataContext)); handler = ViewModel.handler; if (handler.PrimaryNotification != null) { CurrentDate = handler.PrimaryNotification.TriggerTime; PrimaryNotification = handler.PrimaryNotification; UpdateCheck = true; } PickDate.Date = CurrentDate.Date; PickTime.Time = CurrentDate.TimeOfDay; BottomBarSaveItem.ButtonSaveEvent += new EventHandler(SavePrimaryAlarm); }
/* * Notification */ /// <summary> /// Map using Automapper /// </summary> public static NotificationDto MapToDto(this NotificationVm NotificationVm) { return(Mapper.Map <NotificationVm, NotificationDto>(NotificationVm)); }
public ActionResult LandingAjax(NotificationVm notificationVm) { return(IncPartialView("LandingPartial", notificationVm)); }
public ActionResult Landing(NotificationVm notificationVm) { return(View(notificationVm)); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { ViewModel = ((NotificationVm)(MainGrid.DataContext)); }