Пример #1
0
 private void InsertModule(IColumnProcess tool)
 {
     if (ETLMount < 1 || ETLMount >= CurrentETLTools.Count)
     {
         CurrentETLTools.Add(tool);
     }
     else
     {
         CurrentETLTools.Insert(ETLMount, tool);
     }
 }
Пример #2
0
        public override void DictDeserialize(IDictionary <string, object> dicts, Scenario scenario = Scenario.Database)
        {
            base.DictDeserialize(dicts, scenario);
            MaxThreadCount = dicts.Set("MaxThreadCount", MaxThreadCount);
            GenerateMode   = dicts.Set("GenerateMode", GenerateMode);
            SampleMount    = dicts.Set("SampleMount", SampleMount);
            var doc = dicts as FreeDocument;

            if (doc != null && doc.Children != null)
            {
                foreach (var child in doc.Children)
                {
                    var name    = child["Type"].ToString();
                    var process = PluginProvider.GetObjectByType <IColumnProcess>(name);
                    if (process != null)
                    {
                        process.DictDeserialize(child);
                        CurrentETLTools.Add(process);
                    }
                }
            }
        }