コード例 #1
0
ファイル: MainViewModel.cs プロジェクト: JoeGilkey/RadioLog
 internal static void UpdateEmergencyAlarmSoundPlayer()
 {
     _emergencyAlarmSound = null;
     if(Common.AppSettings.Instance.PlaySoundOnEmergencyAlarm&&!string.IsNullOrWhiteSpace(Common.AppSettings.Instance.EmergencyAlarmSoundFile)&&System.IO.File.Exists(Common.AppSettings.Instance.EmergencyAlarmSoundFile))
     {
         _emergencyAlarmSound = new WPFCommon.BackgroundSoundPlayer(Common.AppSettings.Instance.EmergencyAlarmSoundFile);
     }
 }
コード例 #2
0
ファイル: MainViewModel.cs プロジェクト: JoeGilkey/RadioLog
 internal static void UpdateEmergencyAlarmSoundPlayer()
 {
     _emergencyAlarmSound = null;
     if (Common.AppSettings.Instance.PlaySoundOnEmergencyAlarm && !string.IsNullOrWhiteSpace(Common.AppSettings.Instance.EmergencyAlarmSoundFile) && System.IO.File.Exists(Common.AppSettings.Instance.EmergencyAlarmSoundFile))
     {
         _emergencyAlarmSound = new WPFCommon.BackgroundSoundPlayer(Common.AppSettings.Instance.EmergencyAlarmSoundFile);
     }
 }