public MainWindowViewModel() { SearchBoxGotFocusCommand = new RelayCommand<UIElement>(SearchboxGotFocusHandler); GetClientsLocationCommand = new RelayCommand<Sensor>(GetSensorsLocation); SearchCommand = new RelayCommand<string>(SearchFilter); SetupHubConnection(); SearchBoxLostFocusCommand = new RelayCommand<UIElement>(SearchboxLostFocusHandler); }
public MainPageViewModel() { GetSensorData(); GetSensorLocationCommand = new RelayCommand<Sensor>(GetSensorLocation); CheckInCommand = new RelayCommand(NavToCheckIn); }