コード例 #1
0
 private static void Main(string[] args)
 {
     using (var notificationClient = new MultiMediaNotificationListener())
     {
         Application.Run(new MainWindow());
     }
 }
コード例 #2
0
 private static void Main(string[] args)
 {
     using (var notificationClient = new MultiMediaNotificationListener())
     {
         Trace.WriteLine(string.Format("Headphone is {0}connected", notificationClient.IsConnected ? "": "not "));
         Application.Run(new MainWindow());
     }
 }