private void AddEvent(EventType type, string message) { EventRaised?.Invoke(this, new PhilosopherEventArgs(Name, type, message)); }
private void AddEvent(EventType type, string message) => EventRaised?.Invoke(this, new WriterEventArgs(Thread.CurrentThread.Name, type, message));
public void OnNext(EventRaised <Instance> value) { Events.Add(value); }
private void RoutedEventHandler(object sender, RoutedEventArgs e) { EventRaised.Raise(this); }
public void OnNext(EventRaised <TInstance> value) { _eventCache.WithValue(value.Event.Name, x => x.EventRaised.OnNext(value)); }
public void Trigger(TimeStamp stamp) { EventRaised?.Invoke(this, new EventEventArgs(stamp)); }
public static IBindable <TValue> Bind <TControl, TValue>(this TControl control, Expression <Func <TControl, TValue> > memberAccess, string refreshEvent = null) where TControl : Control { EventRaised notification = refreshEvent == null ? null : new EventRaised(refreshEvent); return(control.Bind(memberAccess, notification).WithDispatcher(control.Dispatch)); }
/// <summary> /// Raises the EventHandler when invoked. /// </summary> public void OnEventRaised() { EventRaised?.Invoke(this, null); }
/// <summary> /// Raises <see cref="EventRaised"/>. /// </summary> /// <param name="args"></param> protected virtual void OnEventRaised(T args) { EventRaised?.Invoke(this, args); }