private string _export() { StringBuilder sb = new StringBuilder(); // LINE 1 sb.AppendLine(_templateDesignerVersion.QuoteWrap()); // LINE 2 sb.AppendLine(String.Format( "{0},{1},{2}", TemplateName.QuoteWrap(), TemplateOwner.QuoteWrap(), _templateOwnerType.QuoteWrap())); sb.Append(TemplateName.QuoteWrap() + ","); sb.Append(TemplateOwner.QuoteWrap() + ","); sb.AppendLine(_templateOwnerType.QuoteWrap()); // LINE 3 - FORM sb.AppendLine(String.Format( "0,0,0,{0},{1},0,1048576,\"\",\"\",\"\"", Width, Height)); // LINE 4 - TABSTRIP sb.AppendLine(String.Format( "{0},5,377,295,395,0,32,{1},{2},{3}", (_pages.Count - 1), // page 0 doesn't count PrefixContainer.DefaultString.QuoteWrap(), ("N=1|" + _tabstripItemData.Export(":")).QuoteWrap(), (":-2147483633:" + _getPageNames()).QuoteWrap())); // LINE 5 - BROWSETREE // FWST-PedsGeneral: 0,555,10,1065,610,0,4,"","N=2|I=F|S=F|B=T","" //sb.AppendLine(String.Format(""); sb.AppendLine(String.Format( "0,{0},10,{1},610,0,4,\"\",{2},\"\"", (Width / 2), (Width - 10), _browseTreeItemData.Export().QuoteWrap())); return(sb.ToString()); }
private string GetHeader() { StringBuilder sb = new StringBuilder(); // LINE 1 sb.AppendLine(Version.QuoteWrap()); // LINE 2 sb.Append(TemplateName.QuoteWrap() + ","); sb.Append(Owner.QuoteWrap() + ","); sb.AppendLine(OwnerType.QuoteWrap()); // LINE 3 - FORM sb.AppendLine(String.Format("0,0,0,{0},{1},0,1048576,\"\",\"\",\"\"", Width, Height)); // LINE 4 - TABCONTROL sb.AppendLine(String.Format("{0},5,377,295,395,0,32,{1},{2},{3}", TabCount, GetPrefix(), GetItemData(), GetDescription())); // LINE 5 - BROWSETREE // FWST-PedsGeneral: 0,555,10,1065,610,0,4,"","N=2|I=F|S=F|B=T","" //sb.AppendLine(String.Format(""); return(sb.ToString()); }