} // end convertMapping private void createTimedSequence() { Sequence = new TimedSequence() { SequenceData = new TimedSequenceData() }; // TODO: use this mark collection (maybe generate a grid?) //I am not sure what to do with this, but it looks like John had a plan. MarkCollection mc = new MarkCollection(); Sequence.Length = TimeSpan.FromMilliseconds(parsedV2Sequence.SeqLengthInMills); var songFileName = parsedV2Sequence.SongPath + Path.DirectorySeparatorChar + parsedV2Sequence.SongFileName; if (songFileName != null) { if (File.Exists(songFileName)) { Sequence.AddMedia(MediaService.Instance.GetMedia(songFileName)); } else { var message = string.Format("Could not locate the audio file '{0}'; please add it manually " + "after import (Under Tools -> Associate Audio).", Path.GetFileName(songFileName)); MessageBox.Show(message, "Couldn't find audio"); } } }
} // end convertMapping private void createTimedSequence() { Sequence = new TimedSequence() { SequenceData = new TimedSequenceData() }; // TODO: use this mark collection (maybe generate a grid?) //I am not sure what to do with this, but it looks like John had a plan. MarkCollection mc = new MarkCollection(); Sequence.Length = TimeSpan.FromMilliseconds(parsedV2Sequence.SeqLengthInMills); var songFileName = parsedV2Sequence.SongPath + Path.DirectorySeparatorChar + parsedV2Sequence.SongFileName; if (songFileName != null) { if (File.Exists(songFileName)) { Sequence.AddMedia(MediaService.Instance.GetMedia(songFileName)); } else { var message = string.Format("Could not locate the audio file '{0}'; please add it manually " + "after import (Under Tools -> Associate Audio).", Path.GetFileName(songFileName)); //messageBox Arguments are (Text, Title, No Button Visible, Cancel Button Visible) MessageBoxForm.msgIcon = SystemIcons.Error; //this is used if you want to add a system icon to the message form. var messageBox = new MessageBoxForm(message, "Couldn't find audio", false, false); messageBox.ShowDialog(); } } }
private void createTimedSequence() { Sequence = new TimedSequence() { SequenceData = new TimedSequenceData() }; // TODO: use this mark collection (maybe generate a grid?) //I am not sure what to do with this, but it looks like John had a plan. MarkCollection mc = new MarkCollection(); Sequence.Length = TimeSpan.FromMilliseconds(parsedV2Sequence.SeqLengthInMills); var songFileName = parsedV2Sequence.SongPath + Path.DirectorySeparatorChar + parsedV2Sequence.SongFileName; if (songFileName != null) { if (File.Exists(songFileName)) { Sequence.AddMedia(MediaService.Instance.GetMedia(songFileName)); } else { var message = string.Format("Could not locate the audio file '{0}'; please add it manually " + "after import (Under Tools -> Associate Audio).", Path.GetFileName(songFileName)); MessageBox.Show(message, "Couldn't find audio"); } } }
private void createTimedSequence() { Sequence = new TimedSequence(); Sequence.SequenceData = new TimedSequenceData(); VixenModules.Sequence.Timed.MarkCollection mc = new VixenModules.Sequence.Timed.MarkCollection(); Sequence.Length = TimeSpan.FromMilliseconds(parsedV2Sequence.SeqLengthInMills); var songFileName = parsedV2Sequence.SongFileName; if (songFileName != null) { if (File.Exists(songFileName)) { Sequence.AddMedia(MediaService.Instance.GetMedia(songFileName)); } else { var message = String.Format("Could not locate the audio file '{0}' please add it manually in the sequence editor " + "after the import completes. Use the Tools menu, then select Associate Audio...", Path.GetFileName(songFileName)); MessageBox.Show(message, "Sorry, couldn't find audio"); } } }
private void createTimedSequence() { Sequence = new TimedSequence() { SequenceData = new TimedSequenceData() }; // TODO: use this mark collection (maybe generate a grid?) //I am not sure what to do with this, but it looks like John had a plan. MarkCollection mc = new MarkCollection(); Sequence.Length = TimeSpan.FromMilliseconds(parsedV2Sequence.SeqLengthInMills); var songFileName = parsedV2Sequence.SongPath + Path.DirectorySeparatorChar + parsedV2Sequence.SongFileName; if (songFileName != null) { if (File.Exists(songFileName)) { Sequence.AddMedia(MediaService.Instance.GetMedia(songFileName)); } else { var message = string.Format("Could not locate the audio file '{0}'; please add it manually " + "after import (Under Tools -> Associate Audio).", Path.GetFileName(songFileName)); //messageBox Arguments are (Text, Title, No Button Visible, Cancel Button Visible) MessageBoxForm.msgIcon = SystemIcons.Error; //this is used if you want to add a system icon to the message form. var messageBox = new MessageBoxForm(message, "Couldn't find audio", false, false); messageBox.ShowDialog(); } } }
private void createTimedSequence() { Sequence = new TimedSequence(); Sequence.SequenceData = new TimedSequenceData(); VixenModules.Sequence.Timed.MarkCollection mc = new VixenModules.Sequence.Timed.MarkCollection(); Sequence.Length = TimeSpan.FromMilliseconds(parsedV2Sequence.SeqLengthInMills); var songFileName = parsedV2Sequence.SongFileName; if (songFileName != null) { if (File.Exists(songFileName)) { Sequence.AddMedia(MediaService.Instance.GetMedia(songFileName)); } else { dialogOpen.CheckFileExists = true; dialogOpen.CheckPathExists = true; dialogOpen.Title = "Audio Not Found! Please Locate " + Path.GetFileName(songFileName); dialogOpen.Multiselect = false; dialogOpen.FileName = Path.GetFileName(songFileName); if (dialogOpen.ShowDialog() == DialogResult.OK) { Sequence.AddMedia(MediaService.Instance.GetMedia(dialogOpen.FileName)); } } } }