Esempio n. 1
0
        private void AddSoundSetting(SoundSetting setting)
        {
            string key = setting.ToString().ToLower();

            if (soundSettings.ContainsKey(key))
            {
                soundSettings[key] = setting;
            }
            else
            {
                soundSettings.Add(key, setting);
                lbSoundAlerts.Items.Add(UppercaseFirst(setting.ToString()));
            }
        }
Esempio n. 2
0
        public override bool Equals(object obj)
        {
            SoundSetting other = (SoundSetting)obj;

            return(this.ToString().Equals(other.ToString()));
        }