static void Main(string[] args) { Console.WriteLine("Enter faculty number"); string fn = Console.ReadLine(); if (StudentData.IsThereStudent(fn)) { Student student = StudentData.TestStudents.Where(s => s.FacultyNumber == fn).First(); string certificate = StudentData.PrepareCertificate(student); StudentData.SaveCertificate(certificate, student.Firstname + " " + student.Lastname + " " + student.FacultyNumber + ".txt"); } }
static void Main(string[] args) { // The code provided will print ‘Hello World’ to the console. // Press Ctrl+F5 (or go to Debug > Start Without Debugging) to run your app. //Console.WriteLine("Hello World!"); //Console.ReadKey(); // Go to http://aka.ms/dotnet-get-started-console to continue learning how to build a console app! StudentData.PrepareCertificate(); Console.ReadKey(); }
static void Main(string[] args) { StudentData.InitTestStudents(); Console.Write("Enter fac number: "); string facNumber = Console.ReadLine(); Student student = StudentData.IsThereStudent(facNumber); string cert = StudentData.PrepareCertificate(student); Console.WriteLine(cert); StudentData.SaveCertificate(cert); }
static void Main(string[] args) { Console.WriteLine("Enter faculty number"); String fNumber = Console.ReadLine(); Console.WriteLine("Enter file name number"); String fileName = Console.ReadLine(); String certificate = StudentData.PrepareCertificate(fNumber); Console.WriteLine(certificate); StudentData.SaveCertificate(certificate, fileName); Console.ReadLine(); }
static void Main(string[] args) { String fnom; String cer; Student stud; StudentData.addTestStudents(); Console.WriteLine("StudentRepository"); Console.WriteLine("F.Nom to print"); fnom = Console.ReadLine(); stud = StudentData.IsThereStudent(fnom); cer = StudentData.PrepareCertificate(ref stud); Console.WriteLine(cer); StudentData.SaveCertificate(cer); }
static void Main(string[] args) { Console.OutputEncoding = Encoding.UTF8; Console.WriteLine("Моля, въведете факултетен номер: "); int fN = int.Parse(Console.ReadLine()); string c = StudentData.PrepareCertificate(fN); if (c != null) { Console.WriteLine(c); Console.WriteLine("Моля, въведете директория, в която да запишете сертификата: "); string fL = Console.ReadLine(); StudentData.WriteCertificate(c, fL); } }