private void RaiseEvent(RoutedEventHandler handler, RoutedEventArgs args) { if (handler != null) { handler(this, args); } }