public SimplePoint DrawNotPort(SimplePoint expPoint) { NotControl notControl = new NotControl(); Canvas.SetLeft(notControl, expPoint.X - 5); Canvas.SetTop(notControl, expPoint.Y - (NotGateSize / 2)); CircuitField.Children.Add(notControl); if (EndGatePoint != null) { EndGatePoint.X += notControl.Width; } return(new SimplePoint { X = expPoint.X + notControl.Width, Y = expPoint.Y }); }