private void LoadRemartPoint(IList<string> list, RemartPoint point) { foreach (var r in RemartPoints) { var pointInfo = r.Replace("$RemartPoint$", point.Name); pointInfo = pointInfo.Replace("$XExpress$", point.XExpress); pointInfo = pointInfo.Replace("$YExpress$", point.YExporess); list.Add(pointInfo); Trace.WriteLine(pointInfo); } }
private void AddRemartPointCommandExecute() { var newPoint = new RemartPoint(PointX, PointY, 10); newPoint.Name = string.Format("RemartPoint{0}", ++remartPointCount); newPoint.Orientation = IsHor ? Orientation.Hor : Orientation.Ver; newPoint.XExpress = PointXExpress; newPoint.YExporess = PointYExpress; GraphSet.GraphObjects.Add(newPoint); Canvas.InvalidateVisual(); }