public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "SizeMode", (int)this.SizeMode); xmlDoc.AppendChild(String.Empty, "Img", this.Img); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "AutoSize", this.AutoSize); xmlDoc.AppendChild(String.Empty, "TextAlign", (int)this.TextAlign); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "TargetWindow", (int)this.TargetWindow); xmlDoc.AppendChild(String.Empty, "DataList", this.DataList); xmlDoc.AppendInnerXml(String.Empty, this.Where.ToXml()); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "Mode", (int)this.DeleteMode); xmlDoc.AppendChild(String.Empty, "SqlRegex", this.SqlRegex); xmlDoc.AppendChild(String.Empty, "DataEntityId", this.DataEntityId); xmlDoc.AppendInnerXml(XmlRootName, this.Where.ToXml()); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "TargetWindow", (int)this.TargetWindow); xmlDoc.AppendChild(String.Empty, "FormElement", this.FormElement); xmlDoc.AppendChild(String.Empty, "FormElementControlType", this.FormElementControlType.Code); xmlDoc.AppendChild(String.Empty, "EventCode", this.Event.Code); xmlDoc.AppendInnerXml(String.Empty, this.CallEvent.ToXml()); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "Text", this.Text); xmlDoc.AppendChild(String.Empty, "Layer", this.Layer); xmlDoc.AppendChild(String.Empty, "ParentId", this.ParentId); xmlDoc.AppendChild("Events"); foreach (EventBase eve in this.Events) { xmlDoc.AppendInnerXml("/Events", eve.ToXml()); } return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "WindowId", this.WindowId); xmlDoc.AppendChild(String.Empty, "IfOpend", (int)this.IfOpend); xmlDoc.AppendChild(String.Empty, "IsDialog", this.IsDialog); if (this.SendDataXml == null || this.SendDataXml == String.Empty) { this.SendDataXml = "<SendData/>"; } xmlDoc.AppendInnerXml(this.SendDataXml); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "SetFormElement", this.SetFormElementId); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "Form", (int)this.Form); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "DataEntityId", this.DataEntityId); xmlDoc.AppendInnerXml(this.Save.ToXml()); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendAttribute(String.Empty, "GroupId", this.GroupId); xmlDoc.AppendChild(String.Empty, "ControlType", ToolStripItemEntityTypesFactory.Instance.GetProvideAttribute(this).Code); xmlDoc.AppendChild(String.Empty, "ToolTipText", this.ToolTipText); xmlDoc.AppendChild(String.Empty, "Text", this.Text); xmlDoc.AppendChild("Events"); if (this.Events != null) { foreach (EventBase even in this.Events) { xmlDoc.AppendInnerXml("/Events", even.ToXml()); } } return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "DataEntity", this.DataEntityId); //xmlDoc.AppendChild(XmlRootName, "NavigationLocation", (int)this.NavigationLocation); //xmlDoc.AppendChild(String.Empty, "Pagination", this.Pagination); //xmlDoc.AppendChild(String.Empty, "ShowItemCount", this.ShowItemCount); //xmlDoc.AppendChild(String.Empty, "ShowPageCount", this.ShowPageCount); //xmlDoc.AppendChild(String.Empty, "ShowPageHomeEnd", this.ShowPageHomeEnd); xmlDoc.AppendChild("Columns"); foreach (UIElementDataListColumnEntityAbstract column in this.DataColumns) { xmlDoc.AppendInnerXml("/Columns", column.ToXml()); } return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild("Items"); foreach (EnumItemEntity enumItemEntity in this.Items) { xmlDoc.AppendInnerXml("/Items", enumItemEntity.ToXml()); } return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "Mode", (int)this.ValidateMode); if (this.ValidateSetXml == String.Empty) { this.ValidateSetXml = "<ValidateSet/>"; } xmlDoc.AppendInnerXml(this.ValidateSetXml); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "DataItem", this.DataItemId); xmlDoc.AppendChild(String.Empty, "AllowEmpty", this.AllowEmpty); xmlDoc.AppendChild(String.Empty, "DataSourceMode", (int)this.DataSourceMode); xmlDoc.AppendChild(String.Empty, "EnumId", this.EnumId); xmlDoc.AppendChild(String.Empty, "DataEntityId", this.DataEntityId); xmlDoc.AppendChild(String.Empty, "TextDataItemId", this.TextDataItemId); xmlDoc.AppendChild(String.Empty, "ValueDataItemId", this.ValueDataItemId); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "DataItem", this.DataItemId); xmlDoc.AppendChild(String.Empty, "AllowEmpty", this.AllowEmpty); xmlDoc.AppendChild(String.Empty, "MaxLength", this.MaxLength); xmlDoc.AppendChild(String.Empty, "MultiLine", this.MultiLine); xmlDoc.AppendChild(String.Empty, "ReadOnly", this.ReadOnly); xmlDoc.AppendChild(String.Empty, "Regex", this.Regex); xmlDoc.AppendChild(String.Empty, "RegexMsg", this.RegexMsg); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild("General"); xmlDoc.AppendChild("About"); xmlDoc.AppendChild("/General", "PrjName", this.Name); xmlDoc.AppendChild("/General", "PrjCode", this.Code); xmlDoc.AppendChild("/General", "DataBase", (int)this.DataBase); xmlDoc.AppendChild("/General", "UserModel", this.UserModel); xmlDoc.AppendChild("/General", "UserPopedomModel", this.UserPopedomModel); xmlDoc.AppendChild("/General", "UserSubsequent", this.UserSubsequent); xmlDoc.AppendChild("/About", "Company", this.Company); xmlDoc.AppendChild("/About", "Version", this.Version); xmlDoc.AppendChild("/About", "Summary", this.Summary); xmlDoc.AppendChild("/About", "Copyright", this.Copyright); xmlDoc.AppendChild("/About", "SplashImg", this.SplashImg); xmlDoc.AppendChild("/About", "BackImg", this.BackImg); xmlDoc.AppendChild("/About", "AboutImg", this.AboutImg); return(xmlDoc.ToString()); }
public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); //XmlNode xmlnode; xmlDoc.AppendChild(String.Empty, "Folder", this.FolderId); xmlDoc.AppendChild(String.Empty, "Width", this.Width); xmlDoc.AppendChild(String.Empty, "Height", this.Height); xmlDoc.AppendChild(String.Empty, "ClientWidth", this.ClientWidth); xmlDoc.AppendChild(String.Empty, "ClientHeight", this.ClientHeight); xmlDoc.AppendChild(String.Empty, "OpenState", (int)this.WindowState); xmlDoc.AppendChild(String.Empty, "Text", this.Text); xmlDoc.AppendChild("BackColorValue"); xmlDoc.AppendInnerXml("/BackColorValue", new UIElementColor(this.BackColorValue).ToXml()); xmlDoc.AppendChild("ForeColorValue"); xmlDoc.AppendInnerXml("/ForeColorValue", new UIElementColor(this.ForeColorValue).ToXml()); xmlDoc.AppendChild(String.Empty, "Remark", this.Remark); if (this.Font != null) { xmlDoc.AppendInnerXml(this.Font.ToXml()); } else { xmlDoc.AppendInnerXml("<Font/>"); } xmlDoc.AppendChild("Events"); xmlDoc.AppendChild("Elements"); foreach (EventBase eve in this.Events) { xmlDoc.AppendInnerXml("/Events", eve.ToXml()); } //对窗体元素的ZOrder进行排序 var elements = from c in this.Elements orderby c.ZOrder ascending select c; foreach (UIElement formElement in elements) { xmlDoc.AppendInnerXml("/Elements", formElement.ToXml()); } return(xmlDoc.ToString()); }
/// <summary> /// 获取无素的完整xml形式 /// 这里完成共有部分,其余由继承的类具体实现 /// </summary> /// <returns></returns> public override string ToXml() { SEXElement xmlDoc = SEXElement.Parse(base.ToXml()); xmlDoc.AppendChild(String.Empty, "ControlType", UIElementEntityTypes.Instance.GetProvideAttribute(this).Code); xmlDoc.AppendChild(String.Empty, "Text", this.Text); xmlDoc.AppendChild("BackColorValue"); xmlDoc.AppendInnerXml("/BackColorValue", new UIElementColor(this.BackColorValue).ToXml()); xmlDoc.AppendChild("ForeColorValue"); xmlDoc.AppendInnerXml("/ForeColorValue", new UIElementColor(this.ForeColorValue).ToXml()); xmlDoc.AppendChild(String.Empty, "Enabled", this.Enabled); xmlDoc.AppendChild(String.Empty, "Visible", this.Visible); xmlDoc.AppendChild(String.Empty, "Top", this.Location.Y); xmlDoc.AppendChild(String.Empty, "Left", this.Location.X); xmlDoc.AppendChild(String.Empty, "Width", this.Width); xmlDoc.AppendChild(String.Empty, "Height", this.Height); xmlDoc.AppendChild(String.Empty, "TabIndex", this.TabIndex); xmlDoc.AppendChild(String.Empty, "ZOrder", this.ZOrder); xmlDoc.AppendChild("Anchor"); xmlDoc.AppendInnerXml("/Anchor", this.Anchor.GetXml()); //字体 if (this.Font != null) { xmlDoc.AppendInnerXml(this.Font.ToXml()); } else { xmlDoc.AppendInnerXml("<Font/>"); } //事件 xmlDoc.AppendChild("Events"); foreach (EventBase even in this.Events) { xmlDoc.AppendInnerXml("/Events", even.ToXml()); } return(xmlDoc.ToString()); }