Exemplo n.º 1
0
 protected sealed override void Dispatch()
 {
     if (username == null || password == null)
     {
         throw new ArgumentNullException();
     }
     PointOfSaleRoot.GetInstance().Login(username, password);
 }
Exemplo n.º 2
0
        protected sealed override void AccessControl()
        {
            PointOfSaleRoot root = PointOfSaleRoot.GetInstance();
            User            user = root.LoggedInUser;

            if (root.LoggedInUser == null)
            {
                throw new NoAuthorizationException();
            }
        }
Exemplo n.º 3
0
 protected override void Dispatch()
 {
     loggedInUserRole = PointOfSaleRoot.GetInstance().LoggedInUser.Role;
 }
Exemplo n.º 4
0
        protected sealed override void Dispatch()
        {
            BasketCart basket = PointOfSaleRoot.GetInstance().BasketCart;

            totalPrice = basket.TotalPrice;
        }
 protected override void Dispatch()
 {
     username = PointOfSaleRoot.GetInstance().LoggedInUser.Username;
 }