static void Main(string[] args) { Crystals.Habitat environment = new Crystals.Habitat(150, 10, 0.01, 150, 150, 1, Molecule.RADIUS); environment.ThreadStart(); //3.14*80*80*0.01 }
static void Main() { double radius = 200, temperature = 10, density = 0.01; float scale = (float)0.5; double Desire = 1; double DesireRadius = Molecule.RADIUS * 10; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); growthSimulation = new GrowthSimulation((int)radius, scale); env = new Habitat(radius, temperature, density, growthSimulation.Center.X, growthSimulation.Center.Y, Desire, DesireRadius); densityBarController = new DensityBarController(growthSimulation, env); densityBarController.BindListeners(); speedBarController = new SpeedBarController(growthSimulation, env); speedBarController.BindListeners(); mainPanelController = new MainPanelController(growthSimulation, env); env.ThreadStart(); Application.Run(growthSimulation); }