Example #1
0
 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]);
 }
Example #2
0
 public Admin(string login, string nPath, string fileName) : base(login, nPath, fileName)
 {
     _fo     = new FileOperations(nPath, fileName);
     _output = new Output();
     path    = nPath;
 }
Example #3
0
 public Student(string login, string path, string fileName) : base(login, path, fileName)
 {
     this.login = login;
     _fo        = new FileOperations(path, fileName);
     _output    = new Output();
 }
Example #4
0
 public void CheckCourse()
 {
     _fo = new FileOperations(_output.path, _output.studentsFile);
     string[] splited = _fo.GetLine(login).Split();
     _output.LineOutput(splited[splited.Length - 1]);
 }
Example #5
0
 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]);
 }