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);
                }
            }
        }
        private ListViewItem createItem(ListViewGroup groupItem, baseLayout.layoutTypes cType, string iconpath, string linkId, ListView lv)
        {
            ListViewItem item = new ListViewItem(" " + baseLayout.getControTypeName(cType), groupItem);

            loadICON(item, iconpath, lv);
            lv.Items.Add(item);
            item.Tag = baseLayout.createLayout(cType);

            return item;
        }