示例#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);
                }
            }
        }