//Constructor
        public CreateOwnJokePageViewModel(INavigator navigator, IJokeWorkflow jokeWorkflow) : base(navigator)
        {
            //Assignments
            _jokeWorkflow = jokeWorkflow;


            //Commands
            CreateJokeCommand = new Command(CreateJoke);
            CancelJokeCommand = new Command(CancelJoke);
        }
示例#2
0
        //Constructor
        public EditOwnJokePageViewModel(INavigator navigator, ISettingsPageViewModel settingsPageViewModel, IJokeWorkflow jokeWorkflow) : base(navigator, settingsPageViewModel)
        {
            //Assignments
            _jokeWorkflow = jokeWorkflow;


            //Commands
            DeleteJokeCommand = new Command(DeleteJoke);
            UpdateJokeCommand = new Command(UpdateJoke);
        }
示例#3
0
        //Constructor
        public DisplayJokePageViewModel(INavigator navigator, ISettingsPageViewModel settingsPageViewModel, IJokeWorkflow jokeWorkflow) : base(navigator, settingsPageViewModel)
        {
            //Assignments
            _jokeWorkflow = jokeWorkflow;


            //Commands
            GetJokeCommand    = new AsyncCommand(GetJoke);
            SearchJokeCommand = new AsyncCommand(SearchJoke);
        }
        //Constructor
        public DisplayOwnJokePageViewModel(INavigator navigator, IJokeWorkflow jokeWorkflow, ISettingsPageViewModel settingsPageViewModel,
                                           IEditOwnJokePageViewModel editOwnJokePageViewModel) : base(navigator, settingsPageViewModel)
        {
            //Assignments
            _jokeWorkflow             = jokeWorkflow;
            _editOwnJokePageViewModel = editOwnJokePageViewModel;


            //Commands
            GetJokeCommand    = new Command(GetJoke);
            CreateJokeCommand = new Command(CreateJoke);
            SearchJokeCommand = new Command(SearchJoke);
            TapJokeCommand    = new Command(TapJoke);
        }