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())); } }
public override bool Equals(object obj) { SoundSetting other = (SoundSetting)obj; return(this.ToString().Equals(other.ToString())); }