private void button1_Click(object sender, EventArgs e) { button4.Enabled = true; button1.Enabled = false; model.Stop(); Controls.Clear(); this.Close(); var form = new ModelForm(); form.StartPosition = FormStartPosition.CenterScreen; form.Show(); }
private void ModelForm_FormClosing(object sender, FormClosingEventArgs e) { model.Stop(); }
private void ModelForm_FormClosing(object sender, FormClosingEventArgs e) { model.Stop(); Thread.Sleep(1000); }
private void StopBtn_Click(object sender, EventArgs e) { computerModel.Stop(); StartBtn.Enabled = true; StopBtn.Enabled = false; }