Exemplo n.º 1
0
 public static void CreateFormRusult(TreeViewSerialize treeViewSerializeIn, List <TableGraph> listTableGraphIn, UserSystemDialog userSystemDialogIn, bool isFormConstructor)
 {
     if (FormResult == null)
     {
         FormResult = new FormConstructor(treeViewSerializeIn, listTableGraphIn, userSystemDialogIn, isFormConstructor);
         FormResult.Show();
     }
 }
Exemplo n.º 2
0
        public void insert_data(Dictionary <string, int> hashMap)
        {
            String html = " ";

            FormConstructor  form  = new FormConstructor(this.sourcePath, this.targetPath + "/" + this.fileName, this.Objectname, this.Fobjects);
            TableConstructor table = new TableConstructor(this.sourcePath, this.targetPath + "/" + this.fileName, this.Objectname, this.Fobjects);
            JsConstructor    js    = new JsConstructor(this.sourcePath, this.targetPath + "/" + this.fileName, this.Objectname);

            html  = form.generate_form(hashMap);
            html += table.generate_table(hashMap);
            html += js.generateJs(hashMap);

            write_file(html);
        }
Exemplo n.º 3
0
        public static FoldChangeForm RestoreFoldChangeForm(IDocumentContainer documentContainer, string persistentString)
        {
            var formContructors = new[]
            {
                FormConstructor.MakeFormConstructor(() => new FoldChangeGrid()),
                FormConstructor.MakeFormConstructor(() => new FoldChangeBarGraph()),
            };

            foreach (var formConstructor in formContructors)
            {
                string prefix = formConstructor.FormType.ToString() + '|';
                if (persistentString.StartsWith(prefix))
                {
                    string groupComparisonName = Uri.UnescapeDataString(persistentString.Substring(prefix.Length));
                    var    form = formConstructor.Constructor();
                    form.SetGroupComparisonName(documentContainer, groupComparisonName);
                    return(form);
                }
            }
            return(null);
        }
Exemplo n.º 4
0
 public static void DestroyFormConstructor()
 {
     FormConstructor?.Dispose();
     FormConstructor = null;
 }