public Vixen2xSequenceImporterForm(string Vixen2File, Vixen.Module.IModuleDataModel staticModuleData)
        {
            InitializeComponent();

            channelMappings = new List <ChannelMapping>();

            //I think this was the correct way to implement this.
            StaticModuleData = (Vixen2xSequenceStaticData)staticModuleData;

            vixen2ImportFile = Vixen2File;

            //Add known information:
            vixen2SequenceTextBox.Text = vixen2ImportFile;


            //Go ahead and build the map for the sequence that we have.
            ParseV2SequenceData();

            //we parsed the sequence so go ahead and for now set our ChannelMappings to the parsed data
            //If the user selects one from the listbox we will make an adjustment.
            channelMappings = parsedV2Sequence.mappings;

            if (StaticModuleData.Vixen2xMappings.Count > 0)
            {
                LoadMaps();
            }
            else
            {
                mapExists = false;
                //use the profilename for now
                vixen2ToVixen3MappingTextBox.Text = parsedV2Sequence.ProfileName;
            }
        }
        public Vixen2xSequenceImporterForm(string Vixen2File, Vixen.Module.IModuleDataModel staticModuleData)
        {
            InitializeComponent();

            channelMappings = new List<ChannelMapping>();

            //I think this was the correct way to implement this.
            StaticModuleData = (Vixen2xSequenceStaticData) staticModuleData;

            vixen2ImportFile = Vixen2File;

            //Add known information:
            vixen2SequenceTextBox.Text = vixen2ImportFile;

            //Go ahead and build the map for the sequence that we have.
            ParseV2SequenceData();

            //we parsed the sequence so go ahead and for now set our ChannelMappings to the parsed data
            //If the user selects one from the listbox we will make an adjustment.
            channelMappings = parsedV2Sequence.mappings;

            if (StaticModuleData.Vixen2xMappings.Count > 0) {
                LoadMaps();
            }
            else {
                mapExists = false;
                //use the profilename for now
                vixen2ToVixen3MappingTextBox.Text = parsedV2Sequence.ProfileName;
            }
        }
        public override IModuleDataModel Clone()
        {
            Vixen2xSequenceStaticData data = new Vixen2xSequenceStaticData();

            data.Vixen2xMappings = new Dictionary <string, List <ChannelMapping> >(Vixen2xMappings);
            return(data);
        }
Esempio n. 4
0
 public override IModuleDataModel Clone()
 {
     Vixen2xSequenceStaticData data = new Vixen2xSequenceStaticData();
     data.Vixen2xMappings = new Dictionary<string, List<ChannelMapping>>(Vixen2xMappings);
     return data;
 }