Пример #1
0
        public CustomersViewModel()
        {
            Title = "Customers";

            MessagingCenter.Subscribe <CustomerEditPage, Customer>(this, "AddCustomer", async(obj, customer) =>
            {
                var _customer = (Customer)customer;
                Customers.Add(_customer);
                await CustomersDataStore.AddItemAsync(_customer);
            });
        }