예제 #1
0
        public Form(int x, int y, int width, int height)
        {
            FormRectangle = new Rectangle(x, y, width, height);
            Content = null;

            IsOpen = false;
            HasFrame = true;
            Resizable = true;
            Dragable = true;
            Title = "Form";
            ResizeHandlePosition = Corner.BottomRight;

            ResizeHandle = new Handle(ResizeHandleFrame, false);
        }
예제 #2
0
        public void Show()
        {
            IsOpen = true;

            if (HasFrame)
            {
                DragHandle = new Handle(TopHandleFrame, true);
            }
            else
            {
                DragHandle = new Handle(FormRectangle, true);
            }
        }