protected void RaiseStateChanged(StateEventArgs args) { var handler = StateChanged; if(handler != null) handler(this, args); }