Exemplo n.º 1
0
 //Start simulation button
 private void button2_Click(object sender, EventArgs e)
 {
     this.button3.Enabled            = true;
     this.button2.Enabled            = false;
     this.toolStripStatusLabel1.Text = $"time: {0}";
     pictureBox1.Visible             = false;
     radioButton1.Checked            = false;
     NumberOfPassengersInElevator    = 0;
     label1.Text = "Rides = 0";
     label2.Text = "Iddle rides = 0";
     label3.Text = "Transported mass = 0";
     label4.Text = $"Passengers count = {NumberOfCreatedPeople}";
     StartSimulation?.Invoke();
 }
Exemplo n.º 2
0
 private void StartButton_Click(object sender, EventArgs e)
 {
     StartSimulation?.Invoke();
 }