private void calibrateButton_Click(object sender, EventArgs e) { richTextBox.Text = "Calibrating..."; calibration = new Calibration(); taskbar.StartCalibration(); Go(); }
private void MainForm_SizeChanged(object sender, EventArgs e) { if (timer.Enabled) { timer.Enabled = false; if (calibration != null) { richTextBox.Text = calibration.Status; calibration = null; taskbar.EndCalibration(); } else { taskbar.EndGrabbing(); } } }