Exemplo n.º 1
0
        public static CustomerDetailViewModel GetInstance()
        {
            if (Instance == null)
            {
                CustomerRepository customerRepository = new CustomerRepository();
                MessagerLogger     messageLogger      = new MessagerLogger();
                CustomerValidation customerValidation = new CustomerValidation(messageLogger);
                Instance = new CustomerDetailViewModel(customerRepository, customerValidation, messageLogger);
            }

            return(Instance);
        }
Exemplo n.º 2
0
 public void OnCmdUpdateCustomer()
 {
     CustomerDetailViewModel.GetInstance().LoadRecord(SelectedCustomer);
     NavigateToCustomerDetailView();
 }