public void Relink(VncLocalSession session) { Text = "Screen Sharing in '" + session.Kws.GetKwsName() + "'"; overlayCtrl.Relink(session); SetLocation(); Show(); }
/// <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); }
public void Relink(VncLocalSession session) { m_session = session; durationTimer.Enabled = true; iconTimer.Enabled = true; UpdateLabels(); UpdateDuration(); }
public VncTunnelThread(VncLocalSession session) : base(session.Kws.Cd.Credentials.KcdAddress, 443, "localhost", session.ProcessPort) { m_session = session; }
/// <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; }