Пример #1
0
 private void LoadSettings()
 {
     SelectedScreenResolution = ScreenResolutions.FirstOrDefault(x => x == string.Format("{0}x{1}", SettingsManager.Current.RemoteDesktop_DesktopWidth, SettingsManager.Current.RemoteDesktop_DesktopHeight));
     SelectedColorDepth       = ColorDepths.FirstOrDefault(x => x == SettingsManager.Current.RemoteDesktop_ColorDepth);
     RedirectClipboard        = SettingsManager.Current.RemoteDesktop_RedirectClipboard;
     RedirectDevices          = SettingsManager.Current.RemoteDesktop_RedirectDevices;
     RedirectDrives           = SettingsManager.Current.RemoteDesktop_RedirectDrives;
     RedirectPorts            = SettingsManager.Current.RemoteDesktop_RedirectPorts;
     RedirectSmartCards       = SettingsManager.Current.RemoteDesktop_RedirectSmartCards;
     RedirectPrinters         = SettingsManager.Current.RemoteDesktop_RedirectPrinters;
 }
Пример #2
0
 private void LoadSettings()
 {
     AdjustScreenAutomatically = SettingsManager.Current.RemoteDesktop_AdjustScreenAutomatically;
     SelectedScreenResolution  = ScreenResolutions.FirstOrDefault(x => x == string.Format("{0}x{1}", SettingsManager.Current.RemoteDesktop_DesktopWidth, SettingsManager.Current.RemoteDesktop_DesktopHeight));
     SelectedColorDepth        = ColorDepths.FirstOrDefault(x => x == SettingsManager.Current.RemoteDesktop_ColorDepth);
     EnableCredSspSupport      = SettingsManager.Current.RemoteDesktop_EnableCredSspSupport;
     AuthenticationLevel       = SettingsManager.Current.RemoteDesktop_AuthenticationLevel;
     RedirectClipboard         = SettingsManager.Current.RemoteDesktop_RedirectClipboard;
     RedirectDevices           = SettingsManager.Current.RemoteDesktop_RedirectDevices;
     RedirectDrives            = SettingsManager.Current.RemoteDesktop_RedirectDrives;
     RedirectPorts             = SettingsManager.Current.RemoteDesktop_RedirectPorts;
     RedirectSmartCards        = SettingsManager.Current.RemoteDesktop_RedirectSmartCards;
     RedirectPrinters          = SettingsManager.Current.RemoteDesktop_RedirectPrinters;
 }