public void appendLayout(ListViewItem item) { if (item == null) { return; } if (item.Tag == null) { return; } if (item.Tag is baseLayout) { baseLayout ctrl = (baseLayout)(item.Tag); if (item.Tag is layouts.table) { ctrl = (layouts.table)(item.Tag); } if (item.Tag is layouts.div) { ctrl = (layouts.div)(item.Tag); } string html = ctrl.createHtmlView(); parentForm.addControl(html); } }
public void appendLayout(ListViewItem item) { if (item == null) { return; } if (item.Tag == null) { return; } if (item.Tag is baseLayout) { try { IfacesEnumsStructsClasses.IHTMLDocument2 doc2 = parentForm.cEXWB1.GetActiveDocument(); baseLayout ctrl = (baseLayout)(item.Tag); if (item.Tag is layouts.table) { ctrl = (layouts.table)(item.Tag); } if (item.Tag is layouts.div) { ctrl = (layouts.div)(item.Tag); } string html = ctrl.createHtmlView(); parentForm.addControl(html); } catch (Exception exp) { MessageBox.Show(exp.Message); } } }