示例#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
 void HandleSelectedLibraryChangedEvent(object sender, SelectedLibraryChangedEventArgs slcea)
 {
     selectedLibrary = slcea.SelectedLibrary;
     playlistEditorControl.SelectedLibrary = selectedLibrary;
     playerControl.SelectedLibrary         = selectedLibrary;
 }
示例#3
0
 void HandleSelectedLibraryChangedEvent(object sender, SelectedLibraryChangedEventArgs slcea)
 {
     selectedLibrary = slcea.SelectedLibrary;
     playlistEditorControl.SelectedLibrary = selectedLibrary;
     playerControl.SelectedLibrary = selectedLibrary;
 }
示例#4
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);
 }