예제 #1
0
 public Order(List <Product> products, RegistredGuest receiver)
 {
     ID       = OrderLocalDB.GetOrders.Count + 1;
     order    = products;
     FullCost = CountFullPrice();
     Receiver = receiver;
     Status   = OrderStatus.New;
 }
예제 #2
0
        public void Registration()
        {
            RegistredGuest registredGuest = new RegistredGuest(
                checker.CheckIsNotEmpty(register.InputName()),
                checker.CheckIsNotEmpty(register.InputSurname()),
                checker.CheckIsNotEmpty(register.InputEmail()),
                checker.CheckIsNotEmpty(register.InputLogin()),
                checker.CheckIsNotEmpty(register.InputPassword()));

            UsersLocalDB.Add(registredGuest);
        }
예제 #3
0
        public bool Enter(ref User user)
        {
            Console.WriteLine("Enter login:"******"Enter password:"******"You were entered as {login}");
                user = new RegistredGuest(Rights.RegistredUser);
                (user as RegistredGuest).Login = UsersLocalDB.GetUserlogin(login);
                return(true);
            }
            MenuBacker.FailBackMessage();
            return(false);
        }
예제 #4
0
 static public void Add(RegistredGuest guest)
 {
     registredGuests.Add(guest);
 }
예제 #5
0
 public Order(RegistredGuest receiver)
 {
     Receiver = receiver;
 }