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; } }
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; } }
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; } }