private void NewMailSound() { if (_newMailSound == "none") { return; } if (_newMailSound == null) { SoundUtil.PlayWindowsSound("MailBeep"); } else { SoundUtil.PlaySound(_newMailSound); } }
private void playButton_Click(object sender, EventArgs e) { if (_currentSound == "none") { return; } if (_currentSound == null) { SoundUtil.PlayWindowsSound("MailBeep"); } else { SoundUtil.PlaySound(_currentSound); } }