// show dialog when add student tile is clicked private void AddStudent_Tile_Click(object sender, EventArgs e) { StudentDetailsForm dialog = new StudentDetailsForm(); dialog.ShowDialog(); }
private void metroButton4_Click_1(object sender, EventArgs e) { StudentDetailsForm dialog = new StudentDetailsForm(); dialog.ShowDialog(); }