コード例 #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
ファイル: RulerForm.cs プロジェクト: michelvosje/ScreenRuler
        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
ファイル: RulerForm.cs プロジェクト: heniu75/ScreenRuler
        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;
            }
        }