Beispiel #1
0
 public void Relink(VncLocalSession session)
 {
     Text = "Screen Sharing in '" + session.Kws.GetKwsName() + "'";
     overlayCtrl.Relink(session);
     SetLocation();
     Show();
 }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
 public void Relink(VncLocalSession session)
 {
     Text = "Screen Sharing in '" + session.Kws.GetKwsName() + "'";
     overlayCtrl.Relink(session);
     SetLocation();
     Show();
 }
Beispiel #4
0
        public void Relink(VncLocalSession session)
        {
            m_session = session;

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

            UpdateLabels();
            UpdateDuration();
        }
Beispiel #5
0
        public void Relink(VncLocalSession session)
        {
            m_session = session;

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

            UpdateLabels();
            UpdateDuration();
        }
Beispiel #6
0
 public VncTunnelThread(VncLocalSession session)
     : base(session.Kws.Cd.Credentials.KcdAddress, 443, "localhost", session.ProcessPort)
 {
     m_session = session;
 }
Beispiel #7
0
 public VncTunnelThread(VncLocalSession session)
     : base(session.Kws.Cd.Credentials.KcdAddress, 443, "localhost", session.ProcessPort)
 {
     m_session = session;
 }
Beispiel #8
0
        /// <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;
        }