Exemplo n.º 1
0
        private void SetSizeHandler(object sender, EventArgs e)
        {
            SetSizeForm form = new SetSizeForm(this.Width, this.Height);

            if (this.TopMost)
            {
                form.TopMost = true;
            }

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Size size = form.GetNewSize();

                this.Width  = size.Width;
                this.Height = size.Height;
            }
        }
Exemplo n.º 2
0
        private void SetSizeHandler(object sender, EventArgs e)
        {
            SetSizeForm form = new SetSizeForm(this.Length, this.Thickness);

            if (this.TopMost)
            {
                form.TopMost = true;
            }

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Dimension dim = form.GetNewDimension();

                this.Length    = dim.Length;
                this.Thickness = dim.Thickness;
            }
        }
Exemplo n.º 3
0
        private void SetWidthHeightHandler(object sender, EventArgs e)
        {
            SetSizeForm form = new SetSizeForm(this.Width, this.Height);

            if (this.TopMost)
            {
                form.TopMost = true;
            }

            if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Size size = form.GetNewSize();

                this.Width = size.Width;
                this.Height = size.Height;
            }
        }