Пример #1
0
 void sim_SimulationCompleted(object sender, SimulationCompletedEventArgs e)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new SimComplete(sim_SimulationCompleted), sender, e);
     }
     else
     {
         TeamSimulationOutcome so = e.Team1Outcome.SimDetails.Outcomes[0];
     }
 }
Пример #2
0
        public void StartSimulation(int numSims)
        {
            for (int i = 0; i < numSims; i++)
            {
                _sim();
            }

            if (this.SimulationCompleted != null)
            {
                SimulationCompletedEventArgs e = new SimulationCompletedEventArgs(outcome1, outcome2);
                this.SimulationCompleted(this, e);
            }
        }
Пример #3
0
 private void Simulation_SimulationCompleted(object sender, SimulationCompletedEventArgs e)
 {
 }