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(); }
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(); }
private void minimizeButton_Click(object sender, EventArgs e) { this.WindowState = FormWindowState.Minimized; Taskbar.Show(); }