Пример #1
0
        private void buttonAssignAudio_Click(object sender, EventArgs e)
        {
            var preferredSoundDevice = _preferences.GetInteger("SoundDevice");

            using (var dialog = new AudioDialog(_eventSequence, _preferences.GetBoolean("EventSequenceAutoSize"), preferredSoundDevice)) {
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    SetSequenceTime();
                }
            }
        }
Пример #2
0
        private void buttonAssignAudio_Click(object sender, EventArgs e)
        {
            var preferredSoundDevice = _preferences.GetInteger("SoundDevice");

            using (var dialog = new AudioDialog(_eventSequence, _preferences.GetBoolean("EventSequenceAutoSize"), preferredSoundDevice)) {
                if (dialog.ShowDialog() == DialogResult.OK) {
                    SetSequenceTime();
                }
            }
        }
Пример #3
0
        private void toolStripButtonAudio_Click(object sender, EventArgs e)
        {
            var originalAudio = _sequence.Audio;
            var autoSize = _preferences.GetBoolean("EventSequenceAutoSize");
            var soundDevice = _preferences.GetInteger("SoundDevice");

            using (var dialog = new AudioDialog(_sequence, autoSize, soundDevice)) {
                if (dialog.ShowDialog() != DialogResult.OK) {
                    return;
                }
            }

            if (originalAudio == _sequence.Audio) {
                return;
            }

            SyncAudioButton();
            SetProgramTime(_sequence.Time);
            pictureBoxGrid.Refresh();
            IsDirty = true;
            ParseAudioWaveform();
            pictureBoxTime.Refresh();
        }