private void btnSetCoachesToTrain_Click(object sender, EventArgs e)
        {
            frmAddCoachesToTrain frm = new frmAddCoachesToTrain(emp);

            this.Hide();
            frm.Show();
        }
 private void btnEditCoaches_Click(object sender, EventArgs e)
 {
     if (txtRegistrationNo.Text.Equals(""))
     {
         MessageBox.Show("Error! Registration no is empty!");
         return;
     }
     else
     {
         Train train = new Train();
         train.setRegNo(txtRegistrationNo.Text);
         frmAddCoachesToTrain frm = new frmAddCoachesToTrain(train, active);
         this.Hide();
         frm.Show();
     }
 }