private void viewerLaunchButton_Click(object sender, EventArgs e) { if (viewerLaunchButton.Text.Equals("Launch Viewer")) { if (mController != null && !mController.ProxyController.Started) { mController.StartProxy(); } mController.Launch(); } else { /* * clientStatusLabel.Text = "Stopped"; * viewerLaunchButton.Text = "Launch Viewer"; * firstNameBox.Active = true; * lastNameBox.Active = true; * passwordBox.Active = true; * viewerExeBox.Active = true; * workingDirectoryBox.Active = true; * gridCheck.Active = true; * gridBox.Active = proxy.ProxyConfig.UseGrid; */ if (mController != null) { mController.CloseViewer(false); } //SendMEssage(proxyAddress.Id, } }