Esempio n. 1
0
 public Manager(IReplayStorage storage, IRestApi restApi)
 {
     _storage = storage;
     _restApi = restApi;
     Files.ItemPropertyChanged += (_, __) => { OnStatusChanged(); };
     Files.CollectionChanged   += (_, __) => { OnStatusChanged(); };
 }
Esempio n. 2
0
 public Manager(IReplayStorage storage)
 {
     this._storage              = storage;
     Files.ItemPropertyChanged += (_, __) => {
         PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Status)));
         PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Aggregates)));
     };
     Files.CollectionChanged += (_, __) => {
         PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Status)));
         PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Aggregates)));
     };
 }
Esempio n. 3
0
 public Manager(IReplayStorage storage)
 {
     this._storage              = storage;
     Files.ItemPropertyChanged += (_, __) => { RefreshStatusAndAggregates(); };
     Files.CollectionChanged   += (_, __) => { RefreshStatusAndAggregates(); };
 }