Пример #1
0
 public void Relink(VncLocalSession session)
 {
     Text = "Screen Sharing in '" + session.Kws.GetKwsName() + "'";
     overlayCtrl.Relink(session);
     SetLocation();
     Show();
 }
Пример #2
0
Файл: Vnc.cs Проект: 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);
        }
Пример #3
0
 public void Relink(VncLocalSession session)
 {
     Text = "Screen Sharing in '" + session.Kws.GetKwsName() + "'";
     overlayCtrl.Relink(session);
     SetLocation();
     Show();
 }
Пример #4
0
        public void Relink(VncLocalSession session)
        {
            m_session = session;

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

            UpdateLabels();
            UpdateDuration();
        }
Пример #5
0
        public void Relink(VncLocalSession session)
        {
            m_session = session;

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

            UpdateLabels();
            UpdateDuration();
        }
Пример #6
0
Файл: Vnc.cs Проект: tmbx/kwm-ng
 public VncTunnelThread(VncLocalSession session)
     : base(session.Kws.Cd.Credentials.KcdAddress, 443, "localhost", session.ProcessPort)
 {
     m_session = session;
 }
Пример #7
0
Файл: Vnc.cs Проект: tmbx/kwm-ng
 public VncTunnelThread(VncLocalSession session)
     : base(session.Kws.Cd.Credentials.KcdAddress, 443, "localhost", session.ProcessPort)
 {
     m_session = session;
 }
Пример #8
0
Файл: Vnc.cs Проект: 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;
        }