Esempio n. 1
0
 /// <summary> Send an UIToggleMessage notifying the system that an UIToggleBehavior has been triggered </summary>
 /// <param name="toggleState"> The toggle state the UIToggle that has been triggered </param>
 /// <param name="behaviorType"> The UIToggleBehaviorType of the UIToggleBehavior that has been triggered  </param>
 public void NotifySystemOfTriggeredBehavior(UIToggleState toggleState, UIToggleBehaviorType behaviorType)
 {
     if (OnUIToggleAction != null)
     {
         OnUIToggleAction.Invoke(this, toggleState, behaviorType);
     }
     Message.Send(new UIToggleMessage(this, toggleState, behaviorType));
 }
Esempio n. 2
0
 /// <summary> Initializes a new instance of the class with reference to the UIToggle, its toggle state and UIButtonBehaviorType, of the UIButtonBehavior, that triggered this message </summary>
 /// <param name="toggle"> Reference to the UIToggle that sent this message </param>
 /// <param name="toggleState"> The toggle state the UIToggle was in when the message was sent </param>
 /// <param name="type"> UIToggleBehaviorType of the UIToggleBehavior that triggered the UIToggle to send this message </param>
 public UIToggleMessage(UIToggle toggle, UIToggleState toggleState, UIToggleBehaviorType type)
 {
     Toggle      = toggle;
     ToggleState = toggleState;
     Type        = type;
 }