private void btnBack_Click(object sender, EventArgs e) { frmSearchStudent form = new frmSearchStudent(); form.Show(); this.Hide(); }
private void metroLink1_Click(object sender, EventArgs e) { frmSearchStudent f; if (mtbStudent.Text.Length > 0) { f = new frmSearchStudent(mtbStudent.Text); } else { f = new frmSearchStudent(); } f.ShowDialog(); if (f.StudID > 0) { this.tempStudID = f.StudID; Student st = new Student(this.tempStudID.ToString()); mtbStudent.Text = st.studentData[2] + ", " + st.studentData[3] + " " + st.studentData[4]; mtbStudent_KeyDown(null, null); } }