예제 #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);
            }
        }
예제 #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;
            }
        }
예제 #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;
            }
        }