public virtual void OnButtonStateChanged(ButtonStateEventProperties properties) { if (OnButtonStateChange != null) { OnButtonStateChange(properties); } }
public virtual void SetState(ButtonState state) { ButtonStateEventProperties properties = new ButtonStateEventProperties(); properties.PreviousState = State; properties.State = state; State = state; OnButtonStateChanged(properties); UpdateUI(); }