PlaySound() private méthode

private PlaySound ( string pszSound, IntPtr hMod, SoundFlags sf ) : bool
pszSound string
hMod System.IntPtr
sf SoundFlags
Résultat bool
Exemple #1
0
        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);
            }
        }