Beispiel #1
0
        public GripListViewModel()
        {
            GripsCollection gripsCollection = new GripsCollection();

            Grips = gripsCollection.CreateGripsCollection();

            DeleteGripCommand = new Command <Grip>(ActionDeleteGripCommand);
        }
Beispiel #2
0
        public GripListViewModel(IUserDialogs dialogs)
        {
            Dialogs = dialogs;
            GripsCollection gripsCollection = new GripsCollection();

            Grips             = gripsCollection.CreateGripsCollection();
            SaveCommand       = new Command(ActionSave);
            DeleteGripCommand = new Command <Grip>(ActionDeleteGripCommand);
        }
        public HandControlViewModel(IUserDialogs dialogs)
        {
            Dialogs = dialogs;
            if (App.BTService.Device is null)
            {
                Dialogs.Alert("Not Connected please connect first...");
                //We have no BT Connection yet so goto the the Connection page first...
                AppShell.Current.GoToAsync("BTConnection");
            }
            GripsCollection gripsCollection = new GripsCollection();

            Grips = gripsCollection.CreateGripsCollection();

            FavoriteCommand = new Command <Grip>(ActionFavoriteChangeCommand);
            TappedCommand   = new AsyncCommand <string>(ActionTappedCommand);
        }