예제 #1
0
 public virtual void OnButtonStateChanged(ButtonStateEventProperties properties)
 {
     if (OnButtonStateChange != null)
     {
         OnButtonStateChange(properties);
     }
 }
예제 #2
0
    public virtual void SetState(ButtonState state)
    {
        ButtonStateEventProperties properties = new ButtonStateEventProperties();

        properties.PreviousState = State;
        properties.State         = state;

        State = state;

        OnButtonStateChanged(properties);

        UpdateUI();
    }