Ejemplo n.º 1
0
        public override TabPage[] GetTabPages()
        {
            ArrayList alPages = new ArrayList();

            alPages.AddRange(base.GetTabPages());


            if (this.Parent.Tag != null)
            {
                string xml = string.Empty;

                SPLimitedWebPartManager manager = (SPLimitedWebPartManager)this.Parent.Tag;
                using (StringWriter writer = new StringWriter())
                {
                    XmlTextWriter xtw = new XmlTextWriter(writer);
                    //this.ASPWebPart.ExportMode == WebPartExportMode.All;
                    manager.ExportWebPart(this.ASPWebPart, xtw);
                    xml = writer.ToString();
                }
                TabXmlPage xmlPage = TabPages.GetXmlPage("Xml", xml);
                alPages.Add(xmlPage);
            }

            return((TabPage[])alPages.ToArray(typeof(TabPage)));
        }
Ejemplo n.º 2
0
        public override TabPage[] GetTabPages()
        {
            ArrayList alPages = new ArrayList();

            alPages.AddRange(base.GetTabPages());

            TabXmlPage xmlPage = TabPages.GetXmlPage("Xml", this.RoleDefinition.Xml);

            xmlPage.Text = xmlPage.Text.Replace(" ows_", "\r\n ows_");
            alPages.Add(xmlPage);

            return((TabPage[])alPages.ToArray(typeof(TabPage)));
        }
Ejemplo n.º 3
0
        public static TabXmlPage GetXmlPage(string title, string xml)
        {
            string  key  = title + "XML";
            TabPage page = null;

            if (!Instance._alPagesStore.TryGetValue(key, out page))
            {
                page = new TabXmlPage(title, xml);
                Instance._alPagesStore.Add(key, page);
            }
            else
            {
                ((TabXmlPage)page).Xml = xml;
            }
            return((TabXmlPage)page);
        }
Ejemplo n.º 4
0
 public static TabXmlPage GetXmlPage(string title, string xml)
 {
     string key = title+"XML";
     TabPage page = null;
     if (!Instance._alPagesStore.TryGetValue(key, out page))
     {
         page = new TabXmlPage(title, xml);
         Instance._alPagesStore.Add(key, page);
     }
     else
     {
         ((TabXmlPage)page).Xml = xml;
     }
     return (TabXmlPage)page;
 }