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(); } }
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); }
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); }
public static void DestroyFormConstructor() { FormConstructor?.Dispose(); FormConstructor = null; }