private void conMeasure_Click(object sender, EventArgs e) { var overlay = new OverlayForm(); overlay.TopMost = this.TopMost; if (overlay.ShowDialog() == DialogResult.OK) { measureRectangle(overlay.SelectionRectangle); } }
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; } }
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; } }