Ejemplo n.º 1
0
        private void conMeasure_Click(object sender, EventArgs e)
        {
            var overlay = new OverlayForm();

            overlay.TopMost = this.TopMost;
            if (overlay.ShowDialog() == DialogResult.OK)
            {
                measureRectangle(overlay.SelectionRectangle);
            }
        }
Ejemplo n.º 2
0
        private void conMeasure_Click(object sender, EventArgs e)
        {
            var overlay = new OverlayForm();

            overlay.TopMost = this.TopMost;
            if (overlay.ShowDialog() == DialogResult.OK)
            {
                this.ResizeMode = FormResizeMode.TwoDimensional;
                this.Location   = overlay.WindowSelection.Location;
                this.Height     = overlay.WindowSelection.Height;
                this.Width      = overlay.WindowSelection.Width;
                this.CheckOutOfBounds();
                Settings.ShowOffsetLengthLabels = true;
            }
        }
Ejemplo n.º 3
0
        private void conMeasure_Click(object sender, EventArgs e)
        {
            var overlay = new OverlayForm();

            overlay.TopMost = this.TopMost;
            if (overlay.ShowDialog() == DialogResult.OK)
            {
                this.Location = overlay.WindowSelection.Location;
                if (Vertical)
                {
                    this.Height = overlay.WindowSelection.Height;
                }
                else
                {
                    this.Width = overlay.WindowSelection.Width;
                }
                checkOutOfBorders();
                Settings.ShowOffsetLengthLabels = true;
            }
        }