Beispiel #1
0
 private void transmissionprob_Click(object sender, EventArgs e)
 {
     InputWindow iw = new InputWindow();
     iw.start("Transmission Prob: ");
     iw.ShowDialog();
     conf.transmissionProb = double.Parse(iw.campo);
     this.showConfData();
 }
Beispiel #2
0
 private void vaccine_Click(object sender, EventArgs e)
 {
     InputWindow iw = new InputWindow();
     iw.start("How many Vaccineted:");
     iw.ShowDialog();
     int temp =  int.Parse(iw.campo);
     this.fillRandXNum(temp, 5, 1);
     this.drawMatrix();
     //pintamos en la matriz
     pictureBox1.Image = saveGraph;
 }
Beispiel #3
0
 private void recovery_Click(object sender, EventArgs e)
 {
     InputWindow iw = new InputWindow();
     iw.start("Recover period (tr):");
     iw.ShowDialog();
     conf.recoveriP = int.Parse(iw.campo);
     this.showConfData();
 }
Beispiel #4
0
 private void latent_Click(object sender, EventArgs e)
 {
     InputWindow iw = new InputWindow();
     iw.start("Latent period (tl):");
     iw.ShowDialog();
     conf.latentP = int.Parse(iw.campo);
     this.showConfData();
 }
Beispiel #5
0
 //Botones que setean los parametros
 private void lambda_Click(object sender, EventArgs e)
 {
     InputWindow iw = new InputWindow();
     iw.start("Contacts Rate: ");
     iw.ShowDialog();
     conf.avgContacts = int.Parse(iw.campo);
     this.showConfData();
 }
Beispiel #6
0
 private void infectious_Click(object sender, EventArgs e)
 {
     InputWindow iw = new InputWindow();
     iw.start("Inf period (ti):");
     iw.ShowDialog();
     conf.infectiousP = int.Parse(iw.campo);
     this.showConfData();
 }
Beispiel #7
0
 private void button2_Click_1(object sender, EventArgs e)
 {
     InputWindow iw = new InputWindow();
     iw.start("Random Seed:");
     iw.ShowDialog();
     conf.seed = int.Parse(iw.campo);
     this.showConfData();
 }