Esempio n. 1
0
        public MainViewModel(
            IMvxNavigationService navigationService,
            ISimulationService simulationService)
            : base(navigationService)
        {
            SimulationService = simulationService;

            CreateNewCommand = new MvxCommand(() => SimulationService.CreateNewField());
            StartCommand     = new MvxCommand(() => SimulationService.Start());
            PauseCommand     = new MvxCommand(() => SimulationService.Pause());
        }