324 |
cboColorQuality.SelectedIndex = 1; |
cboColorQuality.SelectedIndex = 1; |
325 |
break; |
break; |
326 |
default: |
default: |
327 |
throw new Exception("Error: Unhandled color depth: 29901"); |
string error = "Error: Unhandled color depth (29901)"; |
328 |
|
using (log4net.NDC.Push(string.Format("ColorDepth={0}",currentConfig.ScreenColorDepth))) |
329 |
|
{ |
330 |
|
Logging.ATSAdminLog.Error(error); |
331 |
|
} |
332 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("ColorDepth={0}", currentConfig.ScreenColorDepth))); |
333 |
|
break; |
334 |
} |
} |
335 |
chkDigitalMonitor.Checked = currentConfig.DigitalMonitor; |
chkDigitalMonitor.Checked = currentConfig.DigitalMonitor; |
336 |
chkRedirectSound.Checked = currentConfig.RedirectSound; |
chkRedirectSound.Checked = currentConfig.RedirectSound; |
356 |
cboConnection.SelectedIndex = 2; |
cboConnection.SelectedIndex = 2; |
357 |
} |
} |
358 |
else |
else |
359 |
throw new Exception("Unhandled session type 65332"); |
{ |
360 |
|
string error = "Unhandled session type (65332)"; |
361 |
|
using (log4net.NDC.Push(string.Format("SessionType={0}", currentConfig.SessionType))) |
362 |
|
{ |
363 |
|
Logging.ATSAdminLog.Error(error); |
364 |
|
} |
365 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("SessionType={0}", currentConfig.SessionType))); |
366 |
|
return; |
367 |
|
} |
368 |
|
|
369 |
SessionTypeChanged(); // Enable and disable rdp and ica tabs |
SessionTypeChanged(); // Enable and disable rdp and ica tabs |
370 |
|
|
390 |
else if (currentConfig.IcaAudioQuality == ATSImageRuntimeConfig.ATSIcaAudioQuality.High) |
else if (currentConfig.IcaAudioQuality == ATSImageRuntimeConfig.ATSIcaAudioQuality.High) |
391 |
tbrIcaAudioQuality.Value = 3; |
tbrIcaAudioQuality.Value = 3; |
392 |
else |
else |
393 |
throw new Exception("Error: Unhandled audio quality (66432)"); |
{ |
394 |
|
string error = "Error: Unhandled audio quality (66432)"; |
395 |
|
using (log4net.NDC.Push(string.Format("IcaAudioQuality={0}", currentConfig.IcaAudioQuality))) |
396 |
|
{ |
397 |
|
Logging.ATSAdminLog.Error(error); |
398 |
|
} |
399 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("IcaAudioQuality={0}", currentConfig.IcaAudioQuality))); |
400 |
|
return; |
401 |
|
} |
402 |
|
|
403 |
if (currentConfig.ICAProtocol == ATSImageRuntimeConfig.ATSIcaProtocol.ATSUDP) |
if (currentConfig.ICAProtocol == ATSImageRuntimeConfig.ATSIcaProtocol.ATSUDP) |
404 |
radIcaProtocolUDP.Checked = true; |
radIcaProtocolUDP.Checked = true; |
405 |
else if (currentConfig.ICAProtocol == ATSImageRuntimeConfig.ATSIcaProtocol.ATSHTTPOnTCP) |
else if (currentConfig.ICAProtocol == ATSImageRuntimeConfig.ATSIcaProtocol.ATSHTTPOnTCP) |
406 |
radIcaProtocolHTTP.Checked = true; |
radIcaProtocolHTTP.Checked = true; |
407 |
else |
else |
408 |
throw new Exception("Error: Unhandlced ICA protocol (60032)"); |
{ |
409 |
|
string error = "Error: Unhandlced ICA protocol (60032)"; |
410 |
|
using (log4net.NDC.Push(string.Format("ICAProtocol={0}", currentConfig.ICAProtocol))) |
411 |
|
{ |
412 |
|
Logging.ATSAdminLog.Error(error); |
413 |
|
} |
414 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("ICAProtocol={0}", currentConfig.ICAProtocol))); |
415 |
|
return; |
416 |
|
} |
417 |
|
|
418 |
int i = cboIcaEncryption.FindStringExact(currentConfig.ICAEncryption); |
int i = cboIcaEncryption.FindStringExact(currentConfig.ICAEncryption); |
419 |
if (i != -1) // Check if the item was found in the combobox. |
if (i != -1) // Check if the item was found in the combobox. |
420 |
{ |
{ |
421 |
cboIcaEncryption.SelectedIndex = i; |
cboIcaEncryption.SelectedIndex = i; |
422 |
} |
} |
423 |
else |
else |
424 |
throw new Exception("Error: Unhandlced ICA encryption(60033)"); |
{ |
425 |
|
string error = "Error: Unhandlced ICA encryption(60033)"; |
426 |
|
using (log4net.NDC.Push(string.Format("ICAEncryption={0}", currentConfig.ICAEncryption))) |
427 |
|
{ |
428 |
|
Logging.ATSAdminLog.Error(error); |
429 |
|
} |
430 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("ICAEncryption={0}", currentConfig.ICAEncryption))); |
431 |
|
return; |
432 |
|
} |
433 |
|
|
434 |
} |
} |
435 |
|
|
729 |
case 1: |
case 1: |
730 |
currentConfig.ScreenColorDepth = ATSImageRuntimeConfig.ATSScreenColorDepth.ATS24Bit; |
currentConfig.ScreenColorDepth = ATSImageRuntimeConfig.ATSScreenColorDepth.ATS24Bit; |
731 |
break; |
break; |
732 |
default: |
default: |
733 |
throw new Exception("Error: Unhandled color depth (41255)."); |
string error = "rror: Unhandled color depth (41255)"; |
734 |
|
using (log4net.NDC.Push(string.Format("ScreenColorDepth={0}", currentConfig.ScreenColorDepth))) |
735 |
|
{ |
736 |
|
Logging.ATSAdminLog.Error(error); |
737 |
|
} |
738 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("ScreenColorDepth={0}", currentConfig.ScreenColorDepth))); |
739 |
|
return; |
740 |
} |
} |
741 |
|
|
742 |
currentConfig.ServerName = txtServer.Text.Trim(); |
currentConfig.ServerName = txtServer.Text.Trim(); |
760 |
currentConfig.SessionType = ATSImageRuntimeConfig.ATSSessionType.ATSPNA; |
currentConfig.SessionType = ATSImageRuntimeConfig.ATSSessionType.ATSPNA; |
761 |
} |
} |
762 |
else |
else |
763 |
throw new Exception("Error: Unhandled connection type(41283)."); |
{ |
764 |
|
string error = "Error: Unhandled session type(41283)"; |
765 |
|
using (log4net.NDC.Push(string.Format("SessionType={0}", currentConfig.SessionType))) |
766 |
|
{ |
767 |
|
Logging.ATSAdminLog.Error(error); |
768 |
|
} |
769 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("SessionType={0}", currentConfig.SessionType))); |
770 |
|
return; |
771 |
|
} |
772 |
|
|
773 |
currentConfig.ReconnectPrompt = !chkReconnect.Checked; |
currentConfig.ReconnectPrompt = !chkReconnect.Checked; |
774 |
currentConfig.AudioLevel = tbrVolume.Value; |
currentConfig.AudioLevel = tbrVolume.Value; |
904 |
helpKeyword = "clientpropertiesmisc.htm"; |
helpKeyword = "clientpropertiesmisc.htm"; |
905 |
break; |
break; |
906 |
default: |
default: |
907 |
throw new Exception("Error: Invalid tab (63326): " + tabClientProperties.SelectedTab.Name); |
string error = "Error:Invalid tab (63326)"; |
908 |
|
using (log4net.NDC.Push(string.Format("tab={0}", tabClientProperties.SelectedTab.Name))) |
909 |
|
{ |
910 |
|
Logging.ATSAdminLog.Error(error); |
911 |
|
} |
912 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("tab={0}", tabClientProperties.SelectedTab.Name))); |
913 |
|
return; |
914 |
} |
} |
915 |
} |
} |
916 |
else if (dialogMode == ATSClientMode.EDIT_DEFAULT) |
else if (dialogMode == ATSClientMode.EDIT_DEFAULT) |
936 |
helpKeyword = "defaultsettingsmisc.htm"; |
helpKeyword = "defaultsettingsmisc.htm"; |
937 |
break; |
break; |
938 |
default: |
default: |
939 |
throw new Exception("Error: Invalid tab (63327): " + tabClientProperties.SelectedTab.Name); |
string error = "Error: Invalid tab (63327)"; |
940 |
|
using (log4net.NDC.Push(string.Format("tab={0}", tabClientProperties.SelectedTab.Name))) |
941 |
|
{ |
942 |
|
Logging.ATSAdminLog.Error(error); |
943 |
|
} |
944 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("tab={0}", tabClientProperties.SelectedTab.Name))); |
945 |
|
return; |
946 |
} |
} |
947 |
} |
} |
948 |
Help.ShowHelp(this, ATSGlobals.strHelpFilePath, HelpNavigator.Topic, helpKeyword); |
Help.ShowHelp(this, ATSGlobals.strHelpFilePath, HelpNavigator.Topic, helpKeyword); |
980 |
pnlApplicationSet.Visible = false; |
pnlApplicationSet.Visible = false; |
981 |
} |
} |
982 |
else |
else |
983 |
throw new Exception("Unhandled session type 95333"); |
{ |
984 |
|
string error = "Error: Unhandled session type (95333)"; |
985 |
|
using (log4net.NDC.Push(string.Format("SessionType={0}", currentConfig.SessionType))) |
986 |
|
{ |
987 |
|
Logging.ATSAdminLog.Error(error); |
988 |
|
} |
989 |
|
MessageBox.Show(string.Format("{0} -> {1}", error, string.Format("SessionType={0}", currentConfig.SessionType))); |
990 |
|
return; |
991 |
|
} |
992 |
} |
} |
993 |
|
|
994 |
private void UpdateScreenResolutionControls(int x, int y) |
private void UpdateScreenResolutionControls(int x, int y) |