public bool AddStudent(Student student) { studentList.Add(student); if (studentList.Contains(student)) { InputAndOutput.OutPutStudent(studentList); return(true); } else { return(false); } }
public bool DeleteStudent(Student student) { studentList.Remove(student); if (studentList.Contains(student)) { InputAndOutput.OutPutStudent(studentList); return(false); } else { return(true); } }
public bool ChangeStuentInfo(Student student) { Student c = studentList.Find(x => x.Stunum == student.Stunum); studentList.Remove(c); studentList.Add(student); if (studentList.Contains(student)) { InputAndOutput.OutPutStudent(studentList); return(true); } else { return(false); } }
public bool ChangePassWord(string userpwd) { Student s1 = stu; s1.Userpwd = userpwd; studentList.Remove(stu); studentList.Add(s1); if (studentList.Contains(s1)) { stu = s1; InputAndOutput.OutPutStudent(studentList); return(true); } else { return(false); } }