private void StartRestoreBtn_Click(object sender, EventArgs e) { if (!DeviceConnected) { MessageBox.Show("No iDevice is connected yet.", "No iDevice found!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } if (RestoreThread.IsRunning()) { return; } if (MessageBox.Show("Make sure to set your boot nonce if not already, if needed. Click OK when you're ready.", "Warning incoming", MessageBoxButtons.OKCancel) == DialogResult.OK) { RestoreDevice(); } }