private void buttonChooseSound_Click(object sender, EventArgs e) { var result = soundManager.ChooseSound(this); if (result.ActionResult == ActionResult.Ok) { parentModule.SoundId = result.SoundResource.Id; textBoxChosenSound.Text = result.SoundResource.Name; } }
private void ChangeButton_Click(object sender, EventArgs e) { var result = soundManager.ChooseSound(); if (result.ActionResult == ActionResult.Ok) { soundNotifier.SoundId = result.SoundResource.Id; SetSoundTextBoxText(soundManager.GetSoundById(this.soundNotifier.SoundId).Name); } }
private void buttonChangeSound_Click(object sender, EventArgs e) { var result = soundManager.ChooseSound(this); if (result.ActionResult == ActionResult.Ok) { textBoxSoundName.Text = result.SoundResource.Name; prayerTimer.FavorSettings.FavorNotifySoundId = result.SoundResource.Id; prayerTimer.ForceUpdateFavorNotify(result.SoundResource.Id); prayerTimer.FlagAsChanged(); } }
private void buttonSoundChange_Click(object sender, EventArgs e) { if (isInited) { var result = soundManager.ChooseSound(this); if (result.ActionResult == ActionResult.Ok) { var newsound = result.SoundResource; textBoxSoundName.Text = newsound.Name; parentTimer.SoundId = newsound.Id; } } }