public MainPageViewModel(INavigationService navigationService, IEventAggregator eventAggregator) : base(navigationService, eventAggregator) { Properties = new ObservableCollection<PropertyDetail>(); HamburgerCommand = new DelegateCommand(ExecHamburger); GroupByCommand = new DelegateCommand(ExecGroupBy); RefreshCommand = new DelegateCommand(Refresh); MultiSelect = false; IsActionGrp = true; IsNotActionGrp = false; IsPrebillingSwiped = false; IsUtilityAlertSwiped = false; GroupStr = "Type"; SwipedItem = new ActionItem { ActionType = ActionItemType.PrebillingApproval }; var ds = DependencyService.Get<IInitializer>(); ActionItems = ds.InitializeActionItems(); }
public void RemoveActionItem(ActionItem actionItem) { if (ActionItems == null || actionItem == null || !ActionItems.Contains(actionItem)) return; ActionItems.Remove(actionItem); UpdateProperties(); }
public void NavigateToActionItem(ActionItem actionItem) { if (actionItem == null) throw new ArgumentNullException("actionItem"); var navParams = new NavigationParameters { { "ActionItem", actionItem } }; switch (actionItem.ActionType) { case ActionItemType.PrebillingApproval: NavService.Navigate("PrebillingTabbedPage", navParams); break; case ActionItemType.UtilityAlert: NavService.Navigate("UtilityAlert", navParams); break; } }