internal static int ConvertFromSounds(RemoteSounds sounds) { switch (sounds) { case RemoteSounds.PlayOnServer: return 1; case RemoteSounds.DontPlay: return 2; default: return 0; } }
private static RemoteSounds ReadRemoteSounds(String str) { RemoteSounds tmp = RemoteSounds.DontPlay; if (!String.IsNullOrEmpty(str)) { tmp = (RemoteSounds)Enum.Parse(typeof(RemoteSounds), str); } return(tmp); }
internal RemoteSounds ReadRemoteSounds() { RemoteSounds tmp = RemoteSounds.DontPlay; string str = this.ReadString(); if (!String.IsNullOrEmpty(str)) { tmp = (RemoteSounds)Enum.Parse(typeof(RemoteSounds), str); } return(tmp); }
internal static int ConvertFromSounds(RemoteSounds sounds) { switch (sounds) { case RemoteSounds.PlayOnServer: return(1); case RemoteSounds.DontPlay: return(2); default: return(0); } }
internal void FromConfigFavorite(FavoriteConfigurationElement favorite) { this.Clipboard = favorite.RedirectClipboard; this.Devices = favorite.RedirectDevices; this.drives = favorite.redirectedDrives; this.Ports = favorite.RedirectPorts; this.Printers = favorite.RedirectPrinters; this.SmartCards = favorite.RedirectSmartCards; this.Sounds = favorite.Sounds; }