Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 4
0
 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;
         }
     }
 }