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(); } }
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(); } }