Esempio n. 1
0
        private void NewMailSound()
        {
            if (_newMailSound == "none")
            {
                return;
            }

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

            if (_currentSound == null)
            {
                SoundUtil.PlayWindowsSound("MailBeep");
            }

            else
            {
                SoundUtil.PlaySound(_currentSound);
            }
        }