コード例 #1
0
ファイル: MainForm.cs プロジェクト: davgit/Gmail-Notifier
        private void NewMailSound()
        {
            if (_newMailSound == "none")
            {
                return;
            }

            if (_newMailSound == null)
            {
                SoundUtil.PlayWindowsSound("MailBeep");
            }
            else
            {
                SoundUtil.PlaySound(_newMailSound);
            }
        }
コード例 #2
0
ファイル: SettingsForm.cs プロジェクト: davgit/Gmail-Notifier
        private void playButton_Click(object sender, EventArgs e)
        {
            if (_currentSound == "none")
            {
                return;
            }

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

            else
            {
                SoundUtil.PlaySound(_currentSound);
            }
        }