private void btnSimulate_Click(object sender, EventArgs e) { if (txtCalculatePerson.Text != "") { calculatePerson = Convert.ToInt32(txtCalculatePerson.Text); for (int i = 0; i < calculatePerson; i++) { FindInterArrivalTimeFromRandomDegit(); FindServiceTimeFromRandomDegit(); CalculateFinalResult(); } MessageBox.Show("Simulation Completed Successfully!!!!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); if (checkBox1.Checked) { frmTotalSimulationTableView ob = new frmTotalSimulationTableView(); ob.Show(); this.Hide(); } this.Hide(); } else { MessageBox.Show("Calculate person required *", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void simulationTableToolStripMenuItem_Click(object sender, EventArgs e) { frmTotalSimulationTableView ob = new frmTotalSimulationTableView(); ob.Show(); }
private void lbl4_Click(object sender, EventArgs e) { frmTotalSimulationTableView ob = new frmTotalSimulationTableView(); ob.Show(); }