public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            Title = "Collections";

            TableView.RegisterClassForCellReuse(typeof(UITableViewCell), "Cell");

            client = new BUYClient(AppDelegate.SHOP_DOMAIN, AppDelegate.API_KEY, AppDelegate.CHANNEL_ID);

            UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;
            client.GetCollections((collections, error) => {
                UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false;

                if (error == null && collections != null)
                {
                    this.collections = collections;
                    TableView.ReloadData();
                }
                else
                {
                    Console.WriteLine("Error fetching products: {0}", error);
                }
            });
        }
 public ShippingRatesTableViewController(BUYClient client, BUYCheckout checkout)
 {
     this.client   = client;
     this.checkout = checkout;
 }
示例#3
0
 public PreCheckoutViewController(BUYClient client, BUYCheckout checkout)
     : base(UITableViewStyle.Grouped)
 {
     this.client   = client;
     this.checkout = checkout;
 }
示例#4
0
 public GetCompletionStatusOperation(BUYClient client, BUYCheckout checkout)
 {
     this.client   = client;
     this.Checkout = checkout;
 }
 public GetShopOperation(BUYClient client)
 {
     this.client = client;
 }
 public GetShippingRatesOperation(BUYClient client, BUYCheckout checkout)
 {
     this.client   = client;
     this.Checkout = checkout;
 }
 public GetShopOperation(BUYClient client)
 {
     this.client = client;
 }
 public CheckoutViewController(BUYClient client, BUYCheckout checkout)
     : base(UITableViewStyle.Grouped)
 {
     this.client = client;
     this.checkout = checkout;
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            Title = "Collections";

            TableView.RegisterClassForCellReuse (typeof(UITableViewCell), "Cell");

            client = new BUYClient (AppDelegate.SHOP_DOMAIN, AppDelegate.API_KEY, AppDelegate.CHANNEL_ID);

            UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;
            client.GetCollections ((collections, error) => {
                UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false;

                if (error == null && collections != null) {
                    this.collections = collections;
                    TableView.ReloadData ();
                } else {
                    Console.WriteLine ("Error fetching products: {0}", error);
                }
            });
        }
 public ShippingRatesTableViewController(BUYClient client, BUYCheckout checkout)
 {
     this.client = client;
     this.checkout = checkout;
 }
 public ProductListViewController(BUYClient client, BUYCollection collection)
     : base(UITableViewStyle.Grouped)
 {
     this.client     = client;
     this.collection = collection;
 }
 public GetShippingRatesOperation(BUYClient client, BUYCheckout checkout)
 {
     this.client = client;
     this.Checkout = checkout;
 }
 public ProductListViewController(BUYClient client, BUYCollection collection)
     : base(UITableViewStyle.Grouped)
 {
     this.client = client;
     this.collection = collection;
 }
 public GetCompletionStatusOperation(BUYClient client, BUYCheckout checkout)
 {
     this.client = client;
     this.Checkout = checkout;
 }