Added the possibility to create asymetrical populations and a crappy loading logo
This commit is contained in:
@@ -33,7 +33,7 @@ namespace PropagationRemasteredBeta
|
||||
|
||||
private void btnRunSimulation_Click(object sender, EventArgs e)
|
||||
{
|
||||
terrainSize = new Size(Convert.ToInt32(nupPopulationSize.Value), Convert.ToInt32(nupPopulationSize.Value));
|
||||
terrainSize = new Size(Convert.ToInt32(nupPopulationWidth.Value), Convert.ToInt32(nupPopulationHeight.Value));
|
||||
infectedProportion = Convert.ToInt32(nupInfecteds.Value);
|
||||
resistantProportion = Convert.ToInt32(nupImmunes.Value);
|
||||
deathRate = Convert.ToInt32(nupMortality.Value);
|
||||
@@ -50,8 +50,11 @@ namespace PropagationRemasteredBeta
|
||||
}
|
||||
private void nupPopulationSize_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
decimal value = nupPopulationSize.Value;
|
||||
lblPopulationSizePrediction.Text = (value * value).ToString();
|
||||
lblPopulationSizePrediction.Text = (nupPopulationWidth.Value * nupPopulationHeight.Value).ToString();
|
||||
}
|
||||
private void nupPopulationHeight_ValueChanged(object sender, EventArgs e)
|
||||
{
|
||||
lblPopulationSizePrediction.Text = (nupPopulationWidth.Value * nupPopulationHeight.Value).ToString();
|
||||
}
|
||||
private void Refresh()
|
||||
{
|
||||
@@ -76,5 +79,7 @@ namespace PropagationRemasteredBeta
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user