Esempio n. 1
0
        private void buttonRunModel_Click(object sender, EventArgs e)
        {
            foreach (var model in _modelsDictionary.Values)
            {
                if (model.GetRunning())
                {
                    model.SetRunning(false);
                    panelSaveModel.Enabled = true;
                    buttonRunModel.Text    = @"Run model";
                    timerUpdateLists.Stop();
                    model.StopRun();
                }
                else
                {
                    model.SetRunning(true);
                    panelSaveModel.Enabled = false;
                    buttonRunModel.Text    = @"Stop model";

                    model.Run();
                    timerUpdateLists.Start();
                }
            }
            if (buttonRunModel.Text == @"Stop model")
            {
                ModelPerformance mp = new ModelPerformance(_modelsDictionary);
                mp.Show();
            }
        }
Esempio n. 2
0
 private void modelPerformanceToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (buttonRunModel.Text == @"Stop model")
     {
         ModelPerformance mp = new ModelPerformance(_modelsDictionary);
         mp.Show();
     }
 }