示例#1
0
        public void AssignController(PlayerSourcesController ctrl)
        {
            m_Controller = ctrl;
            m_Controller.OnSourcesChanged += new SourcesChanged(m_Controller_OnSourcesChanged);
            m_Controller.OnCurrentSourceChanged += new CurrentSourceNameChanged(m_Controller_OnCurrentSourceChanged);

            groupBar1.GroupBarItemSelected += new EventHandler(groupBar1_GroupBarItemSelected);
        }
 public static void CreateController()
 {
     _instance = new PlayerSourcesController();
 }
 public void Dispose()
 {
     if (ShowClient.Instance != null)
         ShowClient.Instance.OnEquipmentStateChanged -= Instance_OnEquipmentStateChanged;
     if (PresentationController.Instance != null)
     {
         PresentationController.Instance.OnSlideSelectionChanged -= Instance_OnSlideSelectionChanged;
         PresentationController.Instance.OnPlaySelectionChanged -= Instance_OnPlaySelectionChanged;
         PresentationController.Instance.OnMonitorListChanged -= Instance_OnMonitorListChanged;
         PresentationController.Instance.OnSourceChanged -= Instance_OnSourceChanged;
         PresentationController.Instance.OnSlideChangedExternally -= Instance_OnSlideChangedExternally;
     }
     if (DesignerClient.Instance != null)
     {
         DesignerClient.Instance.PresentationNotifier.OnResourceAdded -= PresentationNotifier_OnResourceAdded;
         DesignerClient.Instance.PresentationNotifier.OnResourceDeleted -= PresentationNotifier_OnResourceAdded;
     }
     _instance = null;
 }