protected virtual void OnSelectedSourceChanged(EventArgs e) { if (this.SelectedIndex < 0 || this.SelectedIndex > Plugins.Count - 1) { return; } SelectedSource = Plugins[this.SelectedIndex]; SelectedSourceChanged?.Invoke(this, SelectedSource); }
private void OnSelectedSourceChanged(Uri newValue) { UpdateSelection(true); SelectedSourceChanged?.Invoke(this, new SourceEventArgs(newValue)); }