private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
if (!nocheck)
{
DialogResult dialogResult = MessageBox.Show("Closing CUDA Manager will halt mining and clear the miner log.\r\n\r\nDo you want to exit?", "Exit CUDA Manager", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (dialogResult == DialogResult.Yes)
{
SendControlC(p);
SaveListDat();
ovheat = false;
FanController(false, 0);
trayIcon.Visible = false;
SaveSettings(true);
}
else
e.Cancel = true;
}
}