예제 #1
0
 /// <summary>
 /// Plays sound to notify the user of an important message
 /// </summary>
 /// <param name="args"></param>
 public void Notify(MessageFilterEventArgs args)
 {
     if (this.settings.SoundPath != "")
     {
         try
         {
             ExtendedSoundPlayer sp = new ExtendedSoundPlayer(this.settings.SoundPath);
             sp.PlaySound();
         }
         catch (FileNotFoundException ex)
         {
             Console.WriteLine(ex.ToString());
         }
     }
     else
     {
         Console.WriteLine("Keine Sounddatei ausgewählt");
     }
 }
예제 #2
0
 /// <summary>
 /// Plays sound to notify the user of an important message
 /// </summary>
 /// <param name="args"></param>
 public void Notify(MessageFilterEventArgs args)
 {
     if (this.settings.SoundPath != "")
       {
     try
     {
       ExtendedSoundPlayer sp = new ExtendedSoundPlayer(this.settings.SoundPath);
       sp.PlaySound();
     }
     catch (FileNotFoundException ex)
     {
       Console.WriteLine(ex.ToString());
     }
       }
       else
       {
     Console.WriteLine("Keine Sounddatei ausgewählt");
       }
 }