Example #1
0
        private void OnConnectionTerminated(object sender, _IRDPSessionEvents_OnConnectionTerminatedEvent e)
        {//2308 == Presenter Ended Session
            //LogTextBox.Text += "Connection Terminated. Reason: " + e.discReason + Environment.NewLine;
            LogTextBox.AppendText("Connection Terminated. Reason: " + e.discReason + Environment.NewLine);
            //ControlButton.Enabled = false;
            //Close();


            ConnectButton.Enabled    = true;
            DisconnectButton.Enabled = false;
            ControlButton.Enabled    = false;


            NetManager propTest = new NetManager();

            //Thread netManager = new Thread(new ThreadStart(propTest.RunExample));

            //netManager.Start();


            propTest.netShutdown();


            //netManager.
        }
Example #2
0
 //连接结束时触发
 private void AxRdpViewer1OnOnConnectionTerminated(object sender, _IRDPSessionEvents_OnConnectionTerminatedEvent irdpSessionEventsOnConnectionTerminatedEvent)
 {
     _isConnected = false;
     this.Invoke(new Action(() =>
     {
         this.Close();
     }));
 }
Example #3
0
 private void AxRdpViewer1OnOnConnectionTerminated(object sender, _IRDPSessionEvents_OnConnectionTerminatedEvent irdpSessionEventsOnConnectionTerminatedEvent)
 {
     Debug.WriteLine("Connectoin Terminated");
     _isConnected = false;
     this.Invoke(new Action(() =>
     {
         this.TopMost         = false;
         this.FormBorderStyle = FormBorderStyle.Sizable;
         this.Hide();
         notifyIcon1.ShowBalloonTip(1000, "连接停止", "远程桌面广播已停止", ToolTipIcon.Info);
     }));
 }
        private void OnDisconnectFromClient(object sender, _IRDPSessionEvents_OnConnectionTerminatedEvent e)
        {
            Action disco = () =>
            {
                try
                {
                    axRDPViewer1.Disconnect();
                }
                catch { }
            };

            this.Invoke(disco);
            ShowTickletList();
        }
Example #5
0
 private void OnConnectionTerminated(object sender, _IRDPSessionEvents_OnConnectionTerminatedEvent e)
 {
     LogTextBox.Text += "Connection Terminated. Reason: " + e.discReason + Environment.NewLine;
 }
Example #6
0
 private void OnConnectionTerminated(object sender, _IRDPSessionEvents_OnConnectionTerminatedEvent e)
 {
 }
 /// <summary>Initiates the connection lost process.</summary>
 private void ConLostRD(object sender, _IRDPSessionEvents_OnConnectionTerminatedEvent e)
 {
     ConnectionLostRD("Der er mistet forbindelse til fjernskrivebord.");
 }