public SimulationManager(int SimTime, frmHistoryTable historyForm) { iss = new InsuranceSocialSystem(); Population = new Population(this, iss); SimulationTime = SimTime*12; WorldAge = new Age(); HistoryList = new HistoryList(); HistoryForm = historyForm; iss.TaxInterestRate = 0.1; ConstSimulation = false; Paused = false; }
public frmDebugController() { InitializeComponent(); historyForm = new frmHistoryTable(); Manager = new SimulationManager(36, historyForm); Manager.setOwnerWindow(this); graphLot = new frmGraphlot(); btPause.Enabled = false; Paused = false; ProcessTimeMeasurer ptm = new ProcessTimeMeasurer(new SimulationThreadHandle(Manager.Simulate_started), ProcessFinished); ptm.Start(); }