Ejemplo n.º 1
0
        public void AssingController(MonitoringController AController)
        {
            m_Controller = AController;

            m_Controller.OnViewerAdded += new ViewerChanged(m_Controller_OnViewerAdded);
            m_Controller.OnViewerRemoved += new ViewerChanged(m_Controller_OnViewerRemoved);
            m_Controller.OnCollectionChanged += new ViewerCollectionChanged(m_Controller_OnCollectionChanged);
            m_Controller.OnViewerSelected += m_Controller_OnSelectedDisplayChanged;
        }
Ejemplo n.º 2
0
 public static void CreateController()
 {
     _instance = new MonitoringController();
 }
Ejemplo n.º 3
0
 public void Dispose()
 {
     if (DisplayController.Instance != null)
         DisplayController.Instance.OnDisplayChecked -= Instance_OnDisplayChecked;
     if (ShowClient.Instance != null)
     {
         ShowClient.Instance.OnGoToSlide -= Instance_OnGoToSlide;
         ShowClient.Instance.OnSlidePlay -= Instance_OnSlidePlay;
     }
     if (PresentationController.Instance != null)
     {
         PresentationController.Instance.OnSlideChangedExternally -= Instance_OnSlideChangedExternally;
         PresentationController.Instance.OnPlaySelectionChanged -= Instance_OnPlaySelectionChanged;
     }
     if (DisplayController.Instance != null)
         DisplayController.Instance.OnSelectedDisplayChanged -= Instance_OnSelectedDisplayChanged;
     _instance = null;
 }