public ShoppingItemsSource(DialogViewController dvc,ShoppingItemsPresenter presenter)
     : base(dvc)
 {
     this.presenter = presenter;
 }
        public ShoppingItemsView()
            : base(new RootElement("Shopping List"))
        {
            this.presenter = new ShoppingItemsPresenter(this);
            Style = UITableViewStyle.Plain;
            TableSource = new ShoppingItemsSource (this,presenter);

            NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Add, delegate
                {
                    presenter.ShowItemView(new ShoppingItem());
                });

            presenter.IsBusyChanged = (busy) =>
            {
                if(busy)
                    UIApplication.SharedApplication.NetworkActivityIndicatorVisible = true;
                else
                    UIApplication.SharedApplication.NetworkActivityIndicatorVisible = false;
            };

            //			RefreshRequested += delegate {
            //				Thread.Sleep(1000);
            //				presenter.Refresh();
            //				ReloadComplete();
            //			};
        }