protected virtual void OnStateChanged(ExpandoEventArgs e) { if (StateChanged != null) { StateChanged(this, e); } }