private void FrmDelete_Load(object sender, EventArgs e) { LinkListStudent temp = new LinkListStudent(); F = temp.loadListStudent(F); LinkListScore tempsc = new LinkListScore(); sc = tempsc.loadListScore(sc); datas = F.changest(F); datas1 = sc.changesc(sc); foreach (string s in datas) { txtShowStudent.Text = string.Join(Environment.NewLine, datas); } foreach (string s in datas1) { txtShowScore.Text = string.Join(Environment.NewLine, datas1); } }
private void BtnInput_Click(object sender, EventArgs e) { id_delete = Convert.ToInt32(txtInput.Text); LinkListStudent temp = new LinkListStudent(); F = temp.loadListStudent(F); LinkListScore tempsc = new LinkListScore(); sc = tempsc.loadListScore(sc); F = Deletestudent(F, id_delete); sc = Deletescore(sc, id_delete); datas = F.changest(F); datas1 = sc.changesc(sc); foreach (string s in datas) { txtShowStudent.Text = string.Join(Environment.NewLine, datas); } foreach (string s in datas1) { txtShowScore.Text = string.Join(Environment.NewLine, datas1); } }