Example #1
0
File: Arc.cs Project: alibghz/urcie
 public Arc(PVCFrame frame)
 {
     this.frame = frame;
     frame.AddChild(this);
     frame.DimensionChanged += frame_DimensionChanged;
     SetBounds(frame.X, frame.Y - defaultHeight, frame.Width, defaultHeight);
 }
Example #2
0
        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();
            }
        }
Example #3
0
        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();
            }
        }
Example #4
0
 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));
 }
Example #5
0
        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);
        }
Example #6
0
        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();
            }
        }
Example #7
0
 public MullionDragEventHandler(PCanvas canvas, PVCFrame frame)
 {
     this.canvas = canvas;
     this.frame  = frame;
 }
Example #8
0
 public SelectionEventHandler(PVCFrame frame) : base()
 {
     this.frame = frame;
 }
Example #9
0
 public FrameDecorator(PVCFrame frame, PLayer layer)
 {
     this.frame = frame;
     this.layer = layer;
 }