Example #1
0
        /// <summary>
        /// Called when the state has changed.
        /// </summary>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected virtual void OnCurrentStateChanged(CurrentStateChangedEventArgs e)
        {
            EventHandler <CurrentStateChangedEventArgs> handler = this.CurrentStateChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        /// <summary>
        /// Called when the state has changed.
        /// </summary>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected virtual void OnCurrentStateChanged(CurrentStateChangedEventArgs e)
        {
            EventHandler<CurrentStateChangedEventArgs> handler = this.CurrentStateChanged;

              if (handler != null)
              {
            handler(this, e);
              }
        }