/// <summary> /// xml을 클래스화 할때 값을 프로퍼티에 추가함 /// </summary> /// <param name="info"></param> public override void Deserialize(Telerik.Windows.Diagrams.Core.SerializationInfo info) { base.Deserialize(info); if (info["Index"] != null) { this.Index = int.Parse(info["Index"].ToString()); } if (info["PointType"] != null) { this.PointType = info["PointType"].ToString(); } if (info["NaviPointX"] != null) { this.NaviPointX = float.Parse(info["NaviPointX"].ToString()); } if (info["NaviPointY"] != null) { this.NaviPointY = float.Parse(info["NaviPointY"].ToString()); } //if (info["Description1"] != null) // this.Description1 = info["Description1"].ToString(); //if (info["Description2"] != null) // this.Description2 = info["Description2"].ToString(); //if (info["Description3"] != null) // this.Description3 = info["Description3"].ToString(); //if (info["Description4"] != null) // this.Description4 = info["Description4"].ToString(); //if (info["Description5"] != null) // this.Description5 = info["Description5"].ToString(); }
public override NodeViewModelBase DeserializeNode(IShape shape, Telerik.Windows.Diagrams.Core.SerializationInfo info) { NodeViewModelBase node = null; if (shape is IContainerShape) { node = new Brand(); } else { node = new Model(); } if (info["Content"] != null) { node.Content = info["Content"].ToString(); } if (info[this.NodeUniqueIdKey] != null) { var nodeUniquekey = info[this.NodeUniqueIdKey].ToString(); if (!this.CachedNodes.ContainsKey(nodeUniquekey)) { this.CachedNodes.Add(nodeUniquekey, node); } } return(node); }