private void FrmStudentRankList_Load(object sender, EventArgs e) { LinkListFullInfo temp = new LinkListFullInfo(); //F = temp.loadfullInfo(F); F = temp.setStGioi(F); F = F.MergeSort(F); L = temp.setStKha(L); L = L.MergeSort(L); datas = F.change(F); datas1 = L.change(L); datas.AddRange(datas1); foreach (string s in datas) { textBox1.Text = string.Join(Environment.NewLine, datas); } using (StreamWriter sw = new StreamWriter("Danhsachhocsinhkhagioi.txt")) { foreach (string s in datas) { sw.WriteLine(s); } } }
private void Thủ_Khoa_Load(object sender, EventArgs e) { LinkListFullInfo temp = new LinkListFullInfo(); F = temp.setStGioi(F); F = F.MergeSort(F); temp = F; double max = temp.totalScore; int count = 0; datas = changedatas(F, max, ref count); foreach (string s in datas) { textBox1.Text = string.Join(Environment.NewLine, datas); } using (StreamWriter sw = new StreamWriter("Danhsachthukhoa.txt")) { foreach (string s in datas) { sw.WriteLine(s); } } }