public void CheckGroup(string stLogin) { _fo = new FileOperations(_output.path, _output.studentsFile); string[] splited = _fo.GetLine(stLogin).Split(",", StringSplitOptions.RemoveEmptyEntries); Console.WriteLine(stLogin + "'s group: "); _output.LineOutput(splited[splited.Length - 2]); }
public Admin(string login, string nPath, string fileName) : base(login, nPath, fileName) { _fo = new FileOperations(nPath, fileName); _output = new Output(); path = nPath; }
public Student(string login, string path, string fileName) : base(login, path, fileName) { this.login = login; _fo = new FileOperations(path, fileName); _output = new Output(); }
public void CheckCourse() { _fo = new FileOperations(_output.path, _output.studentsFile); string[] splited = _fo.GetLine(login).Split(); _output.LineOutput(splited[splited.Length - 1]); }
public void CheckCourse(string st_login) { fo = new FileOperations(_output.path, _output.studentsFile); string[] splited = fo.GetLine(st_login).Split(",", StringSplitOptions.RemoveEmptyEntries); Console.Write(st_login + "'s course: "); _output.LineOutput(splited[splited.Length - 1]); }