コード例 #1
0
        protected virtual void OnRaiseSelectedLibraryChangedEvent(SelectedLibraryChangedEventArgs slcea)
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            SelectedLibraryChangedEventHandler handler = SelectedLibraryChangedEvent;

            // Raise the event
            if (handler != null)
            {
                handler(this, slcea);
            }
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: aljordan/WAMP
 void HandleSelectedLibraryChangedEvent(object sender, SelectedLibraryChangedEventArgs slcea)
 {
     selectedLibrary = slcea.SelectedLibrary;
     playlistEditorControl.SelectedLibrary = selectedLibrary;
     playerControl.SelectedLibrary         = selectedLibrary;
 }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: aljordan/WAMP
 void HandleSelectedLibraryChangedEvent(object sender, SelectedLibraryChangedEventArgs slcea)
 {
     selectedLibrary = slcea.SelectedLibrary;
     playlistEditorControl.SelectedLibrary = selectedLibrary;
     playerControl.SelectedLibrary = selectedLibrary;
 }
コード例 #4
0
ファイル: ucPreferences.xaml.cs プロジェクト: aljordan/WAMP
 protected virtual void OnRaiseSelectedLibraryChangedEvent(SelectedLibraryChangedEventArgs slcea)
 {
     // Make a temporary copy of the event to avoid possibility of
     // a race condition if the last subscriber unsubscribes
     // immediately after the null check and before the event is raised.
     SelectedLibraryChangedEventHandler handler = SelectedLibraryChangedEvent;
     // Raise the event
     if (handler != null)
         handler(this, slcea);
 }