private async void PlaySoundExecuted() { if (SelectedSound != null) { await SoundsServices.PlayAlertSound(SelectedSound); } }
private async void Setup() { ConfigurationSettings = await ConfigurationServices.GetConfig(); foreach (string sound in await SoundsServices.GetAvailableSounds()) { AvailableSounds.Add(sound); } SelectedSound = ConfigurationSettings.SoundConfig.SoundName; }
private async void LoadCustomSoundExecuted() { await SoundsServices.ImportCustomSound(); foreach (string sound in await SoundsServices.GetAvailableSounds()) { if (!AvailableSounds.Contains(sound)) { AvailableSounds.Add(sound); } } }