示例#1
0
        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());
            }
        }
示例#2
0
        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;
            }
        }
示例#3
0
        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);
            }
        }
示例#4
0
        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();
            };
        }