예제 #1
0
        public void NavigateToCustomer(Customer customer)
        {
            var screen = IoC.Get<CustomerViewModel>();
            screen.Customer = customer;

            NavigateToScreen(screen);
        }
예제 #2
0
        public void NavigateToCashHome(Customer cashCustomer)
        {
            var screen = IoC.Get<CashHomeViewModel>();
            screen.CashCustomer = cashCustomer;

            NavigateToScreen(screen, true);
        }
예제 #3
0
        public void NavigateToCustomer(Customer customer, bool cardSession = false)
        {
            var screen = IoC.Get<CustomerViewModel>();
            screen.Customer = customer;
            screen.CardSession = cardSession;

            NavigateToScreen(screen, true);
        }
예제 #4
0
        public void AddCustomer(Customer customer)
        {
            if (customer.Id == Guid.Empty)
            {
                customer.Id = Guid.NewGuid();
            }

            customer.Insert();
        }
예제 #5
0
파일: CardService.cs 프로젝트: edjo23/shop
        public void Write(Customer customer)
        {
            var card = CardWriteService.Write();

            if (!String.IsNullOrEmpty(card))
            {
                var current = CustomerService.GetCustomer(customer.Id);
                customer.Number = card;

                CustomerService.UpdateCustomer(customer);
            }
        }
예제 #6
0
        public void NavigateToPinEntry(Customer customer)
        {
            var screen = IoC.Get<PinEntryViewModel>();
            screen.Customer = customer;

            NavigateToScreen(screen, true);
        }
예제 #7
0
        public void Save()
        {
            var customer = new Customer { Name = Name, Number = Number };

            CustomerService.AddCustomer(customer);

            Close();
        }
예제 #8
0
 public void UpdateCustomer(Customer customer)
 {
     customer.Update();
 }
예제 #9
0
 public void UpdateCustomer(Customer customer)
 {
     Manager.UpdateCustomer(customer);
 }
예제 #10
0
 public void AddCustomer(Customer customer)
 {
     Manager.AddCustomer(customer);
 }
예제 #11
0
 public CustomerTransactionModel(CustomerTransaction customerTransaction, Customer customer)
 {
     CustomerTransaction = customerTransaction;
     Customer = customer;
 }