示例#1
0
 internal static int ConvertFromSounds(RemoteSounds sounds)
 {
     switch (sounds)
     {
         case RemoteSounds.PlayOnServer: return 1;
         case RemoteSounds.DontPlay: return 2;
         default: return 0;
     }
 }
示例#2
0
        private static RemoteSounds ReadRemoteSounds(String str)
        {
            RemoteSounds tmp = RemoteSounds.DontPlay;

            if (!String.IsNullOrEmpty(str))
            {
                tmp = (RemoteSounds)Enum.Parse(typeof(RemoteSounds), str);
            }
            return(tmp);
        }
示例#3
0
        internal RemoteSounds ReadRemoteSounds()
        {
            RemoteSounds tmp = RemoteSounds.DontPlay;
            string       str = this.ReadString();

            if (!String.IsNullOrEmpty(str))
            {
                tmp = (RemoteSounds)Enum.Parse(typeof(RemoteSounds), str);
            }
            return(tmp);
        }
示例#4
0
        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;
 }