Esempio n. 1
0
        /// <summary>
        /// Raises the changed event using the private delegate
        /// </summary>
        private void RaiseOnChange(string status)
        {
            // safely invoke an event
            ChangedDelegate raiseChangedDelegate = changedDelegate;

            if (raiseChangedDelegate != null)
            {
                ChangedEventArgs changedEventArgs = new ChangedEventArgs();
                changedEventArgs.Status = status;

                raiseChangedDelegate(this, changedEventArgs);
            }
        }
Esempio n. 2
0
 public Delegator(EventQueue dispatcher, Property <V> property, T tag, ChangedDelegate changed)
     : base(dispatcher, property, tag)
 {
     this.c = changed;
 }
Esempio n. 3
0
 public Delegator(EventQueue dispatcher, Property <V> property, ChangedDelegate changed)
     : this(dispatcher, property, default(T), changed)
 {
 }
Esempio n. 4
0
 public void AddEvent(ChangedDelegate cd)
 {
     Changed += cd;
 }