public ControlPageViewModel(IAboavobrRestEndpoint aboavobrRestEndpoint, IUiService uiService) { this.aboavobrRestEndpoint = aboavobrRestEndpoint; this.uiService = uiService; MoveCommand = new DelegateCommand <Direction>(ExecuteMoveCommand); }
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; }