예제 #1
0
        private async void FindAllCustomersAsync()
        {
            IsProgressBarVisible = true;
            Message = "Loading Customer names...";

            var customers = await Task.Run(
                () =>
                _subscribeService.FindAllCustomers()
                );

            customers.Insert(0, new Customer()
            {
                Id      = Guid.Empty,
                Contact = new Contact()
                {
                    FirstName = "Existing Customers"
                }
            });
            Customers            = customers;
            Message              = "Done Loading Customer names...";
            IsProgressBarVisible = false;
        }
예제 #2
0
 public IList <Customer> FindAllCustomers()
 {
     return(_subscribeService.FindAllCustomers());
 }