Beispiel #1
0
        /// <summary>
        /// If we are running a session, unregister the relevant event handler
        /// and destroy the overlay.
        /// </summary>
        private void StopOverlay()
        {
            if (m_appRunningASession != null)
                m_appRunningASession = null;

            if (m_overlayForm != null)
            {
                m_overlayForm.Close();
                m_overlayForm.Dispose();
                m_overlayForm = null;
            }

            runningCtrl.DeinitControl();
        }
Beispiel #2
0
        /* AppSharing event handlers */
        public void HandleOnVncSessionStart(object _sender, EventArgs _args)
        {
            OnVncSessionEventArgs args = (OnVncSessionEventArgs)_args;
            Logging.Log("HandleOnVncSessionStart : " + Environment.NewLine + args.ToString());

            if (args.Session.CreatorID == SrcApp.Helper.GetKwmUserID() &&
                SrcApp.CurrentState == AppSharingState.Started)
            {
                m_overlayForm = new RunningOverlay(m_appRunningASession, args.Session);
                m_overlayForm.Show();

                runningCtrl.InitControl(SrcApp, args.Session);
            }

            if (SrcApp.NotifiedCaughtUpFlag) UpdateUI(true);
        }