protected void OnCommandCompleted(CommandCompletedEventArgs e) { var eh = this.CommandCompleted; if (eh != null) { eh(this, e); } }
protected void OnCommandCompleted(CommandCompletedEventArgs e) { var eh = this.CommandCompleted; if (eh != null) { if (this.Dispatcher == null) { eh(this, e); } else { this.Dispatcher.Invoke(() => eh(this, e)); } } }