Пример #1
0
 public void Initialize()
 {
     _gained     = false;
     _observable = new NotifyingObservable();
     _observable.OnGainComputed += () => { _gained = true; };
     _observable.OnLoseComputed += () => { _lost = true; };
     _computed       = new Computed(() => { _observable.OnGet(); });
     _secondComputed = new Computed(() => { _observable.OnGet(); });
 }
Пример #2
0
 public void Initialize()
 {
     _gained = false;
     _observable = new NotifyingObservable();
     _observable.OnGainComputed += () => { _gained = true; };
     _observable.OnLoseComputed += () => { _lost = true; };
     _computed = new Computed(() => { _observable.OnGet(); });
     _secondComputed = new Computed(() => { _observable.OnGet(); });
 }