예제 #1
0
 private void AddEvent(EventType type, string message)
 {
     EventRaised?.Invoke(this, new PhilosopherEventArgs(Name, type, message));
 }
예제 #2
0
 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);
 }
예제 #4
0
 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));
 }
예제 #6
0
 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);
 }
예제 #9
0
 /// <summary>
 /// Raises <see cref="EventRaised"/>.
 /// </summary>
 /// <param name="args"></param>
 protected virtual void OnEventRaised(T args)
 {
     EventRaised?.Invoke(this, args);
 }