Exemplo n.º 1
0
        public ControlPageViewModel(IAboavobrRestEndpoint aboavobrRestEndpoint, IUiService uiService)
        {
            this.aboavobrRestEndpoint = aboavobrRestEndpoint;
            this.uiService            = uiService;

            MoveCommand = new DelegateCommand <Direction>(ExecuteMoveCommand);
        }
Exemplo n.º 2
0
 public MainPageViewModel(IAboavobrRestEndpoint aboavobrRestEndpoint, IUiService navigationService)
 {
     connectionStatus    = "Not Connected";
     ConnectCommand      = new DelegateCommand(async() => await Connect(), () => !string.IsNullOrEmpty(Url));
     OpenSettingsCommand = new DelegateCommand(() => { });
     Url = "http://10.0.2.2:5000";
     this.aboavobrRestEndpoint = aboavobrRestEndpoint;
     this.navigationService    = navigationService;
 }