/// <summary> /// beep /// </summary> internal void SoundBeep() { #if !PocketPC SystemSounds.Beep.Play(); #else Beep.Play(); #endif }
/// <summary> /// using static imports static members of types directly into scope. /// </summary> /// <example> /// using static System.Media.SystemSounds; /// </example> /// <param name="sender"></param> /// <param name="e"></param> private void btnUsingStaticMembers_Click(object sender, EventArgs e) { Beep.Play(); }
private void Element_OnMouseEnter(object sender, MouseEventArgs e) { Beep.Play(); }