Example #1
0
        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);
            }
        }
Example #2
0
        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);
                }
            }
        }