コード例 #1
0
            protected virtual void OnSelectedSourceChanged(EventArgs e)
            {
                if (this.SelectedIndex < 0 || this.SelectedIndex > Plugins.Count - 1)
                {
                    return;
                }

                SelectedSource = Plugins[this.SelectedIndex];
                SelectedSourceChanged?.Invoke(this, SelectedSource);
            }
コード例 #2
0
 private void OnSelectedSourceChanged(Uri newValue)
 {
     UpdateSelection(true);
     SelectedSourceChanged?.Invoke(this, new SourceEventArgs(newValue));
 }