public static void GetTL(List <User> getInfoAllUsers) { ApplicationMenu applicationMenu = new ApplicationMenu(); for (int i = 0; i < getInfoAllUsers.Count; i++) { applicationMenu.TwoColorsChainge(i); Console.SetCursorPosition(70, i + 1); Console.Write($"{getInfoAllUsers[i].TL} "); } }
// read public static void Read(List <Book> getInfoAllBooks) { ApplicationMenu applicationMenu = new ApplicationMenu(); for (int i = 0; i < getInfoAllBooks.Count; i++) { applicationMenu.TwoColorsChainge(i); Console.SetCursorPosition(43, i + 1); Console.Write($"{getInfoAllBooks[i].Words} "); } }
// Book content = 2 CarrierTitleAuthor public static void Get2CaTiAu(List <Book> getInfoAllBooks) { ApplicationMenu applicationMenu = new ApplicationMenu(); for (int i = 0; i < getInfoAllBooks.Count; i++) { applicationMenu.TwoColorsChainge(i); Console.SetCursorPosition(43, i + 1); Console.Write($"{getInfoAllBooks[i].CarrierLoginID} "); Console.SetCursorPosition(48, i + 1); Console.Write($"{getInfoAllBooks[i].Title} "); Console.Write($" {getInfoAllBooks[i].Author} "); } }
// User content = 0 ID NameClapCarrier public static void Get0IdNameClapCarrier(List <User> getInfoAllUsers) { ApplicationMenu applicationMenu = new ApplicationMenu(); for (int i = 0; i < getInfoAllUsers.Count; i++) { applicationMenu.TwoColorsChainge(i); Console.SetCursorPosition(43, i + 1); Console.Write($"{getInfoAllUsers[i].LoginID} "); Console.SetCursorPosition(48, i + 1); Console.Write($"{getInfoAllUsers[i].UserName} "); Console.SetCursorPosition(61, i + 1); Console.Write($"{getInfoAllUsers[i].RoleType} "); Console.SetCursorPosition(69, i + 1); Console.Write($"{getInfoAllUsers[i].Carrier} "); Console.ForegroundColor = ConsoleColor.Cyan; Console.SetCursorPosition(78, i + 1); Console.Write($"{getInfoAllUsers[i].Clap} "); } }
// circulation public static void CirculationView(List <Book> getInfoAllBooks) { ApplicationMenu applicationMenu = new ApplicationMenu(); for (int i = 0; i < getInfoAllBooks.Count; i++) { applicationMenu.TwoColorsChainge(i); Console.SetCursorPosition(43, i + 1); Console.Write($"{getInfoAllBooks[i].OwnerLoginID} "); Console.SetCursorPosition(48, i + 1); Console.Write($"{getInfoAllBooks[i].BookID} "); Console.SetCursorPosition(58, i + 1); Console.Write($"{getInfoAllBooks[i].Circulation} "); Console.SetCursorPosition(68, i + 1); Console.Write($"{getInfoAllBooks[i].BookStatus} "); Console.SetCursorPosition(78, i + 1); Console.Write($"{getInfoAllBooks[i].DateOfLastMove} "); //be careful of this hack !! here to erase time Console.SetCursorPosition(88, i + 1); Console.Write(" "); } }