Ejemplo n.º 1
0
        public FreeDocument DictSerialize(Scenario scenario = Scenario.Database)
        {
            FreeDocument dict = this.UnsafeDictSerialize();

            if (ParaGenerator != null)
            {
                dict.SetValue("ParaGenerator", ParaGenerator.DictSerialize());
            }
            return(dict);
        }
Ejemplo n.º 2
0
 public void Init()
 {
     foreach (var result in ParaGenerator.Generate())
     {
         var p = new Proxy();
         p.UnsafeDictDeserialize(result);
         Proxies.Add(p);
     }
     ;
 }
Ejemplo n.º 3
0
        public void DictDeserialize(IDictionary <string, object> docu, Scenario scenario = Scenario.Database)
        {
            this.UnsafeDictDeserialize(docu);
            if (docu.ContainsKey("ParaGenerator"))
            {
                List <XFrmWorkAttribute> coll = PluginProvider.GetPluginCollection(typeof(IColumnGenerator));
                object doc2 = docu["ParaGenerator"];
                var    p    = doc2 as IDictionary <string, object>;
                object name = p["Type"];
                if (name != null)
                {
                    ParaGeneratorSelector.SelectItem =
                        coll.FirstOrDefault(d => d.Name == name.ToString());

                    ParaGenerator?.DictDeserialize(p);
                }
            }
        }