Ejemplo n.º 1
0
        private async void ListBoxEvent_EditVolumeOnTrack_Click(object sender, RoutedEventArgs e)
        {
            var track = GetSelectedTrack(TrackType.Track);

            if (track != null)
            {
                if (track.TrackRef == null)
                {
                    await DialogCoordinator.Instance.ShowMessageAsync(Application.Current.MainWindow, $"Unsupported operation", $"Edit Volume is not available on this cue type. Only Sequence type cues are supported.", MessageDialogStyle.Affirmative);

                    return;
                }
                var trackForm = new VolumeControl(Application.Current.MainWindow, track);
                trackForm.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        private async void EditVolume()
        {
            var cue = GetSelectedCue();

            if (cue != null)
            {
                if (cue.SequenceRef == null)
                {
                    await DialogCoordinator.Instance.ShowMessageAsync(Application.Current.MainWindow, $"Unsupported operation", $"Edit Volume is not available on this cue type. Only Sequence type cues are supported.", MessageDialogStyle.Affirmative);

                    return;
                }
                var trackForm = new VolumeControl(Application.Current.MainWindow, cue);
                trackForm.ShowDialog();
            }
        }