private void homeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmMainView ob = new frmMainView();

            ob.Show();
            this.Hide();
        }
        private void btnBack_Click(object sender, EventArgs e)
        {
            frmMainView ob = new frmMainView();

            ob.Show();
            this.Hide();
        }
Beispiel #3
0
        public void Method()
        {
            if (txtCalculatePerson.Text != "" && txtATRD.Text != "" && txtServRD.Text != "")
            {
                calculatePerson = Convert.ToInt32(txtCalculatePerson.Text);
                counter++;
                FindInterArrivalTimeFromRandomDegit();
                FindServiceTimeFromRandomDegit();
                CalculateFinalResult();
                MessageBox.Show("Successfully Assigned", "Assigned", MessageBoxButtons.OK, MessageBoxIcon.Information);
                clearTEXTbox();

                frmMainView ob = new frmMainView();
                if (counter >= calculatePerson)
                {
                    ob.Show();
                    this.Hide();
                }
            }
            else if (txtCalculatePerson.Text == "" && txtATRD.Text != "" && txtServRD.Text != "")
            {
                MessageBox.Show("Calculate person required !", "Error", MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
            }
            else
            {
                MessageBox.Show("Please type all info !", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }