public StartStopViewModel(IUserStateService userStateService) { WorkCommand = new DelegateCommand(_ => userStateService.StartWorkAsync()); RestCommand = new DelegateCommand(_ => userStateService.StopWorkAsync()); }
public StartStopViewModel(IUserStateService userStateService) { WorkCommand = new DelegateCommand(_ => userStateService.StartWorkAsync()); RestCommand = new DelegateCommand(_ => userStateService.StopWorkAsync()); }