public static void ShowCalibration(Point point) { if (form == null) { form = new CalibrationForm(); form.TopMost = true; } form.ShowCalibration(point, CROSSHAIR_SIZE, p); form.Show(); }
private void btnCalibrate_Click(object sender, EventArgs e) { if (cf == null || cf.IsDisposed) { cf = new CalibrationForm(); } cf.Show(); _cursorControl = false; _calibrationState = 1; DoCalibration(); }
private void btnCalibrate_Click(object sender, EventArgs e) { if (cf == null) { cf = new CalibrationForm(); cf.Show(); } if (cf.IsDisposed) { cf = new CalibrationForm(); cf.Show(); } cursorControl = false; calibrationState = 1; doCalibration(); }