private void butConfigure_Click(object sender, EventArgs e) { CalibrationForm scalingForm = new CalibrationForm(settings); if (scalingForm.ShowDialog(this.Owner) == DialogResult.OK) { lblScaling.Text = String.Format(Resources.ScalingText, settings.DpiScalingMode.GetDescription()); } }
private void conCalibrate_Click(object sender, EventArgs e) { CalibrationForm scalingForm = new CalibrationForm(Settings); if (scalingForm.ShowDialog(this) == DialogResult.OK) { Settings.MonitorDpi = scalingForm.MonitorDpi; Settings.MonitorScaling = scalingForm.MonitorScaling; } }
private void butConfigure_Click(object sender, EventArgs e) { CalibrationForm scalingForm = new CalibrationForm(settings); if (scalingForm.ShowDialog(this) == DialogResult.OK) { settings.MonitorDpi = scalingForm.MonitorDpi; settings.MonitorScaling = scalingForm.MonitorScaling; lblScaling.Text = String.Format(Resources.ScalingText, settings.MonitorDpi, settings.MonitorScaling); } }
private void conCalibrate_Click(object sender, EventArgs e) { CalibrationForm scalingForm = new CalibrationForm(Settings); scalingForm.Show(this); scalingForm.CalibrationChanged += (o, args) => { System.Diagnostics.Debug.WriteLine("Calibration changed."); this.Invalidate(); }; }