void t_Tick(object sender, EventArgs e)
 {
     regForm = new RegisterDialog();
     regForm.StartPosition = FormStartPosition.Manual;
     regForm.Left = Left + Width/2 - regForm.Width/2 ;
     regForm.Top = Top + Height/2 - regForm.Height/2 + 40;
     regForm.TopMost = true;
     regForm.Show();
 }
        private void StressTestForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            Hide();
            Application.DoEvents();

            if(!UnlockKey.Unlocked)
            {
                var form = new RegisterDialog();
                form.ShowDialog();
            }

            if (StressTester != null)
            {
                StressTester.CancelThreads = true;
            }

            SaveOptions();
        }