Esempio n. 1
0
 public void Relink(VncLocalSession session)
 {
     Text = "Screen Sharing in '" + session.Kws.GetKwsName() + "'";
     overlayCtrl.Relink(session);
     SetLocation();
     Show();
 }
Esempio n. 2
0
File: Vnc.cs Progetto: tmbx/kwm-ng
        /// <summary>
        /// Helper method to start a session.
        /// </summary>
        private byte[] StartSession(bool serverSessionFlag, bool supportFlag, int windowHandle, String subject, UInt64 sessionID)
        {
            // Throw if we cannot open the session.
            if (AppVnc.SessionPresentFlag)
            {
                throw new Exception("a screen sharing session is already running");
            }
            if (!IsOnlineCapable())
            {
                throw new Exception("the " + KwmStrings.Kws + " is not connected to the server");
            }

            // Remember that we have started a session.
            SessionPresentFlag = true;

            // Create the local session object.
            LocalSession = new VncLocalSession(this);
            LocalSession.ServerSessionFlag  = serverSessionFlag;
            LocalSession.SupportSessionFlag = supportFlag;
            LocalSession.WindowHandle       = windowHandle;
            LocalSession.Subject            = subject;
            LocalSession.SessionID          = sessionID;

            // Asynchronously start the session.
            KBase.ExecInUI(LocalSession.HandleNextSessionStep);

            Kws.OnStateChange(WmStateChange.Transient);

            return(LocalSession.SessionUuid);
        }
Esempio n. 3
0
 public void Relink(VncLocalSession session)
 {
     Text = "Screen Sharing in '" + session.Kws.GetKwsName() + "'";
     overlayCtrl.Relink(session);
     SetLocation();
     Show();
 }
Esempio n. 4
0
        public void Relink(VncLocalSession session)
        {
            m_session = session;

            durationTimer.Enabled = true;
            iconTimer.Enabled     = true;

            UpdateLabels();
            UpdateDuration();
        }
Esempio n. 5
0
        public void Relink(VncLocalSession session)
        {
            m_session = session;

            durationTimer.Enabled = true;
            iconTimer.Enabled = true;

            UpdateLabels();
            UpdateDuration();
        }
Esempio n. 6
0
File: Vnc.cs Progetto: tmbx/kwm-ng
 public VncTunnelThread(VncLocalSession session)
     : base(session.Kws.Cd.Credentials.KcdAddress, 443, "localhost", session.ProcessPort)
 {
     m_session = session;
 }
Esempio n. 7
0
File: Vnc.cs Progetto: tmbx/kwm-ng
 public VncTunnelThread(VncLocalSession session)
     : base(session.Kws.Cd.Credentials.KcdAddress, 443, "localhost", session.ProcessPort)
 {
     m_session = session;
 }
Esempio n. 8
0
File: Vnc.cs Progetto: tmbx/kwm-ng
        /// <summary>
        /// Helper method to start a session.
        /// </summary>
        private byte[] StartSession(bool serverSessionFlag, bool supportFlag, int windowHandle, String subject, UInt64 sessionID)
        {
            // Throw if we cannot open the session.
            if (AppVnc.SessionPresentFlag) throw new Exception("a screen sharing session is already running");
            if (!IsOnlineCapable()) throw new Exception("the " + KwmStrings.Kws + " is not connected to the server");

            // Remember that we have started a session.
            SessionPresentFlag = true;

            // Create the local session object.
            LocalSession = new VncLocalSession(this);
            LocalSession.ServerSessionFlag = serverSessionFlag;
            LocalSession.SupportSessionFlag = supportFlag;
            LocalSession.WindowHandle = windowHandle;
            LocalSession.Subject = subject;
            LocalSession.SessionID = sessionID;

            // Asynchronously start the session.
            KBase.ExecInUI(LocalSession.HandleNextSessionStep);

            Kws.OnStateChange(WmStateChange.Transient);

            return LocalSession.SessionUuid;
        }