Exemple #1
0
 public PairServiceViewModel(IPairedService service)
 {
     Service        = service;
     PairCommand    = new RelayCommand <PairingOption> (OnPair, OnCanPair);
     CancelCommand  = new RelayCommand(Cancel);
     RefreshCommand = new RelayCommand(Refresh, () => !IsBusy);
     Refresh();
 }
Exemple #2
0
 public PairServiceResultMessage(IPairedService service)
 {
     Service = service ?? throw new ArgumentNullException(nameof(service));
 }
Exemple #3
0
 public PairServiceResultMessage(IPairedService service, Exception ex)
     : this(service)
 {
     Exception = ex;
 }
Exemple #4
0
 public PairServiceMessage(IPairedService pairedService)
 {
     PairedService = pairedService;
 }