Exemple #1
0
 public StateEventArgs(AlexState state)
 {
     State = state;
 }
Exemple #2
0
        /// <summary>
        /// Update the state of the current Alex so as to change the Alex menu items accordingly.
        /// </summary>
        /// <param name="state"></param>
        private void UpdateState(AlexState state)
        {
            // Make sure someone is listening to event
            if (OnUpdateState == null) return;

            StateEventArgs args = new StateEventArgs(state);
            OnUpdateState(this, args);
        }