public StateEventArgs(AlexState state) { State = state; }
/// <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); }