private void Loaded(object sender, RoutedEventArgs e)
 {
     ViewModel            = ((NotificationVm)(MainGrid.DataContext));
     MainGrid.DataContext = ViewModel;
     handler = ViewModel.handler;
     BottomBarSaveItem.ButtonSaveEvent += new EventHandler(SaveNotification);
 }
예제 #2
0
 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"));
 }
예제 #3
0
        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);
 }
예제 #5
0
 /*
  * Notification
  */
 /// <summary>
 /// Map using Automapper
 /// </summary>
 public static NotificationDto MapToDto(this NotificationVm NotificationVm)
 {
     return(Mapper.Map <NotificationVm, NotificationDto>(NotificationVm));
 }
예제 #6
0
 public ActionResult LandingAjax(NotificationVm notificationVm)
 {
     return(IncPartialView("LandingPartial", notificationVm));
 }
예제 #7
0
 public ActionResult Landing(NotificationVm notificationVm)
 {
     return(View(notificationVm));
 }
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     ViewModel = ((NotificationVm)(MainGrid.DataContext));
 }