Added the possibility to create asymetrical populations and a crappy loading logo

This commit is contained in:
2022-05-05 14:23:57 +02:00
parent 674eb9dc22
commit 8276edd032
7 changed files with 109 additions and 64 deletions
@@ -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
{
}
}
}