private void btnupdate_Click(object sender, EventArgs e) { addstudent = new addstudent(new List <object>() { }); mdi.main(encapulation.Parent1, addstudent); }
private void btnadd_Click(object sender, EventArgs e) { addstudent = new addstudent(); addstudent.Text = "Add"; mdi.main(encapulation.Parent1, addstudent, addstudent.Text); }