Exemplo n.º 1
0
        protected virtual void OnRaiseSelectedOutputChangedEvent(SelectedOutputChangedEventArgs socea)
        {
            // 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.
            SelectedOutputChangedEventHandler handler = SelectedOutputChangedEvent;

            // Raise the event
            if (handler != null)
            {
                handler(this, socea);
            }
        }
Exemplo n.º 2
0
 void HandleSelectedOutputChangedEvent(object sender, SelectedOutputChangedEventArgs socea)
 {
     selectedOutput = socea.SelectedOutput;
     playerControl.SelectedOutput = selectedOutput;
 }
Exemplo n.º 3
0
 void HandleSelectedOutputChangedEvent(object sender, SelectedOutputChangedEventArgs socea)
 {
     selectedOutput = socea.SelectedOutput;
     playerControl.SelectedOutput = selectedOutput;
 }
Exemplo n.º 4
0
 protected virtual void OnRaiseSelectedOutputChangedEvent(SelectedOutputChangedEventArgs socea)
 {
     // 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.
     SelectedOutputChangedEventHandler handler = SelectedOutputChangedEvent;
     // Raise the event
     if (handler != null)
         handler(this, socea);
 }