Ejemplo n.º 1
0
        public ScreenManagerUserInterface(IScreenManagerUIContainer _ScreenManagerUIContainer)
        {
            log.Debug("Constructing ScreenManagerUserInterface.");

            m_ScreenManagerUIContainer = _ScreenManagerUIContainer;

            InitializeComponent();
            ComCtrls.ScreenManagerUIContainer = m_ScreenManagerUIContainer;
            m_ThumbsViewer.SetScreenManagerUIContainer(m_ScreenManagerUIContainer);

            BackColor = Color.White;
            Dock      = DockStyle.Fill;

            m_ThumbsViewer.Top      = 0;
            m_ThumbsViewer.Left     = 0;
            m_ThumbsViewer.Width    = Width;
            m_ThumbsViewer.Height   = Height - pbLogo.Height - 10;
            m_ThumbsViewer.Anchor   = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
            m_ThumbsViewer.Closing += ThumbsViewer_Closing;
            this.Controls.Add(m_ThumbsViewer);

            m_DelegateUpdateTrkFrame = new DelegateUpdateTrkFrame(UpdateTrkFrame);

            // Registers our exposed functions to the DelegatePool.
            DelegatesPool dp = DelegatesPool.Instance();

            dp.DisplayThumbnails = DoDisplayThumbnails;

            // Thumbs are enabled by default.
            m_ThumbsViewer.Visible   = true;
            m_bThumbnailsWereVisible = true;
            m_ThumbsViewer.BringToFront();

            pnlScreens.BringToFront();
            pnlScreens.Dock = DockStyle.Fill;

            Application.Idle += new EventHandler(this.IdleDetector);
        }
Ejemplo n.º 2
0
 public void SetScreenManagerUIContainer(IScreenManagerUIContainer _value)
 {
     m_ScreenManagerUIContainer = _value;
 }