Beispiel #1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            InitialiseLogger();

            // Configure Buttons
            btnExtenderDisconnect.Enabled = false;

            // Create VirtualChannel Handlers
            AvCtrlHandler  = new VirtualChannelAvCtrlHandler(m_logger, rdpClient, _libVLC, _mp);
            DevCapsHandler = new VirtualChannelDevCapsHandler(m_logger, rdpClient);
            McxSessHandler = new VirtualChannelMcxSessHandler(m_logger, rdpClient);

            // Create VirtualChannel Handlers EventHandlers
            McxSessHandler.StatusChanged += McxSessHandler_StatusChanged;

            m_logger.LogInfo("Open SoftSled (http://github.com/l2n6h5b3/SoftSled2)");

            SoftSledConfig config = SoftSledConfigManager.ReadConfig();

            if (!config.IsPaired)
            {
                m_logger.LogInfo("Extender is not paired!");
                SetStatus("Extender is not paired");
            }
            else
            {
                m_logger.LogInfo("Extender is paired with " + config.RdpLoginHost);
                SetStatus("Extender ready to connect");
            }
        }
Beispiel #2
0
        private void FrmFullScreen_Load(object sender, EventArgs e) {
            InitialiseLogger();

            // Configure Window
            //this.TopMost = true;
            this.Bounds = Screen.PrimaryScreen.Bounds;
            this.FormBorderStyle = FormBorderStyle.None;
            this.WindowState = FormWindowState.Maximized;
            this.rdpClient.Size = new System.Drawing.Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);

            // Create VirtualChannel Handlers
            AvCtrlHandler = new VirtualChannelAvCtrlHandler(m_logger, rdpClient, _libVLC, _mp);
            DevCapsHandler = new VirtualChannelDevCapsHandler(m_logger, rdpClient);
            McxSessHandler = new VirtualChannelMcxSessHandler(m_logger, rdpClient);

            // Create VirtualChannel Handlers EventHandlers
            McxSessHandler.StatusChanged += McxSessHandler_StatusChanged;

            m_logger.LogInfo("OpenSoftSled (http://github.com/l2n6h5b3/SoftSled2)");

            SoftSledConfig config = SoftSledConfigManager.ReadConfig();
            if (!config.IsPaired) {
                m_logger.LogInfo("Extender is not paired!");
            } else {
                m_logger.LogInfo("Extender is paired with " + config.RdpLoginHost);
            }

            // Connect Extender
            ConnectExtender();
        }