public Arc(PVCFrame frame) { this.frame = frame; frame.AddChild(this); frame.DimensionChanged += frame_DimensionChanged; SetBounds(frame.X, frame.Y - defaultHeight, frame.Width, defaultHeight); }
internal static void UpdateFillingsCode(PVCFrame frame) { frame.ValidateChildren(); List <Filling> items = frame.Fillings(); for (int i = 0; i < items.Count; i++) { items[i].Model.Code = frame.Model.Code + ".FL" + (i + 1).ToString(); } }
internal static void UpdateSashesCode(PVCFrame frame) { frame.ValidateChildren(); List <Sash> items = frame.Sashes(); for (int i = 0; i < items.Count; i++) { items[i].Model.Code = frame.Model.Code + ".SH" + (i + 1).ToString(); } }
public SurfaceModel(SerializationInfo info, StreamingContext context) : base(info, context) { surface = (Surface)info.GetValue("Surface", typeof(Surface)); code = (string)info.GetValue("Code", typeof(string)); bounds = (RectangleF)info.GetValue("Bounds", typeof(RectangleF)); surfaceParent = (Surface)info.GetValue("SurfaceParent", typeof(Surface)); sashParent = (Sash)info.GetValue("SashParent", typeof(Sash)); frameParent = (PVCFrame)info.GetValue("FrameParent", typeof(PVCFrame)); }
public WidthAxis(PVCFrame aFrame, PLayer aLayer) { layer = aLayer; frame = aFrame; camera = layer.GetCamera(0); camera.ViewTransformChanged += CameraVisibleChanged; frame.DimensionChanged += FrameDimensionChanged; frame.ChildrenChanged += FrameChildrenChanged; SetBounds(DefaultX, DefaultY, DefaultWidth, DefaultHeight); }
internal static void UpdateMullionsCode(PVCFrame frame, Orientation orienation) { frame.ValidateChildren(); List <Mullion> items = frame.HorizontalMullions();; string prefix = ".MH"; if (orienation == Orientation.Vertical) { items = frame.VerticalMullions(); prefix = ".MV"; } for (int i = 0; i < items.Count; i++) { items[i].Model.Code = frame.Model.Code + prefix + (i + 1).ToString(); } }
public MullionDragEventHandler(PCanvas canvas, PVCFrame frame) { this.canvas = canvas; this.frame = frame; }
public SelectionEventHandler(PVCFrame frame) : base() { this.frame = frame; }
public FrameDecorator(PVCFrame frame, PLayer layer) { this.frame = frame; this.layer = layer; }