Exemple #1
0
        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();
        }
Exemple #2
0
 private void ModelForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     model.Stop();
 }
Exemple #3
0
 private void ModelForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     model.Stop();
     Thread.Sleep(1000);
 }
Exemple #4
0
 private void StopBtn_Click(object sender, EventArgs e)
 {
     computerModel.Stop();
     StartBtn.Enabled = true;
     StopBtn.Enabled  = false;
 }