コード例 #1
0
        protected override void OnClosing(CancelEventArgs e)
        {
            // If the user tries to close the window without doing a clean
            // shutdown of the remote connection, do it for them.
            if (remoteDesktop.IsConnected)
            {
                remoteDesktop.Disconnect();
            }

            base.OnClosing(e);
            Taskbar.Show();
        }
コード例 #2
0
 public void DisconnectRemote()
 {
     remoteDesktop.Disconnect();
     Taskbar.Show();
     reconnectTimer.Stop();
     recSW.Stop();
     timer.Stop();
     sw.Stop();
     connectButton.BackColor = System.Drawing.Color.Green;
     connectButton.Text      = "Connect";
     avatarPictureBox.Show();
     connectMessageLabel.Show();
     meetingOngoinglabel.Text = "You Viewed " + sw.Elapsed.Hours + " h " + sw.Elapsed.Minutes + " m " + sw.Elapsed.Seconds + " seconds";
     //progressBar.Hide();
     livePictureBox.Hide();
     timerLabel.Hide();
     timeLabel.Hide();
     fullScreenCheckBox.Show();
     //hubConnection.Stop();
     //hubConnection.Dispose();
 }
コード例 #3
0
 private void minimizeButton_Click(object sender, EventArgs e)
 {
     this.WindowState = FormWindowState.Minimized;
     Taskbar.Show();
 }