public override ISequence LoadSequenceFromFile(string Vixen2File)
        {
            Vixen2xSequenceImporterForm v2ImporterForm = new Vixen2xSequenceImporterForm();

            if (!v2ImporterForm.ProcessFile(Vixen2File))
            {
                throw new System.FormatException("Not enough channel nodes to import file");
            }
            return(v2ImporterForm.Sequence);
        }
Exemplo n.º 2
0
 public override ISequence LoadSequenceFromFile(string Vixen2File)
 {
     try {
         using (Vixen2xSequenceImporterForm v2ImporterForm = new Vixen2xSequenceImporterForm(Vixen2File, StaticModuleData)) {
             if (v2ImporterForm.ShowDialog() == System.Windows.Forms.DialogResult.OK)
             {
                 return(v2ImporterForm.Sequence);
             }
             else
             {
                 //This will return a null sequence not sure we can do that.
                 return(null);
             }
         }
     }
     catch (Exception) {
         return(null);
     }
 }