コード例 #1
0
 private async void PlaySoundExecuted()
 {
     if (SelectedSound != null)
     {
         await SoundsServices.PlayAlertSound(SelectedSound);
     }
 }
コード例 #2
0
        private async void Setup()
        {
            ConfigurationSettings = await ConfigurationServices.GetConfig();

            foreach (string sound in await SoundsServices.GetAvailableSounds())
            {
                AvailableSounds.Add(sound);
            }

            SelectedSound = ConfigurationSettings.SoundConfig.SoundName;
        }
コード例 #3
0
        private async void LoadCustomSoundExecuted()
        {
            await SoundsServices.ImportCustomSound();

            foreach (string sound in await SoundsServices.GetAvailableSounds())
            {
                if (!AvailableSounds.Contains(sound))
                {
                    AvailableSounds.Add(sound);
                }
            }
        }