示例#1
0
 public MainPageViewModel(IAllPageModel page, INavigationService navigationService)
 {
     _page = page;
     NavigationToNotificationCommand = new DelegateCommand(() => navigationService.NavigateAsync("NotificationPage"));
     NavigationToOverlayCommand      = new DelegateCommand(() => navigationService.NavigateAsync("OverlayPage"));
     NavigationToUsageCommand        = new DelegateCommand(() => navigationService.NavigateAsync("UsageStatsManagerPage"));
 }
 public NotificationPageViewModel(IAllPageModel page, INotificationOnAndOff NotificationOnAndOff)
 {
     //_page = page;
     //OnCommand = new DelegateCommand(() => _page.NotificationOn());
     //OffCommand = new DelegateCommand(() => _page.NotificationOff());
     _NotificationOnAndOff = NotificationOnAndOff;
     OnCommand             = new DelegateCommand(() => _NotificationOnAndOff.NotificationOn());
     OffCommand            = new DelegateCommand(() => _NotificationOnAndOff.NotificationOff());
 }
        public UsageStatsManagerPageViewModel(IAllPageModel page)
        {
            _page = page;

            TestLabel = "aaaaaaaaaaaaaa";

            GetPackageCommand = new DelegateCommand(() =>
                                                    TestLabel = _page.UsageStatsManager.GetAppName());

            GetTypeCommand = new DelegateCommand(() =>
                                                 TestLabel = _page.UsageStatsManager.GetType());
        }
示例#4
0
 public HidePageViewModel(IAllPageModel page)
 {
     _page = page;
 }
示例#5
0
 public OverlayPageViewModel(IAllPageModel page)
 {
     _page             = page;
     OverlayOnCommand  = new DelegateCommand(() => _page.OverlayViewCreate());
     OverlayOffCommand = new DelegateCommand(() => _page.OverlayViewDestroy());
 }