예제 #1
0
 public static void InputCustomerInfo(Customer c, out bool b1, out bool b2)
 {
     Console.WriteLine("请再次输入用户名!");
     c.Name = Console.ReadLine();
     b1     = AccountManagement.FindAccountByName(c, c.Name);
     Console.WriteLine("请输入密码!");
     c.Pwd = Console.ReadLine();
     b2    = AccountManagement.FindAccountById(c, c.Pwd);
 }
예제 #2
0
 public static void InputSellerInfo(Seller s, out bool b1, out bool b2)
 {
     Console.WriteLine("请再次输入用户名!");
     s.Name = Console.ReadLine();
     b1     = AccountManagement.FindAccountByName(s, s.Name);
     Console.WriteLine("请输入密码!");
     s.Pwd = Console.ReadLine();
     b2    = AccountManagement.FindAccountById(s, s.Pwd);
 }