public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			Presenter = new TwitterPresenter (this, new TwitterRepoImpl());
			DataSource = new TwitterTableDatasource ();
			TwitterTable.Delegate = new TwitterTableDelegate (this);
			TwitterTable.DataSource = DataSource;
			Presenter.LoadFeed ();
		}
Exemplo n.º 2
0
        protected override void OnCreate (Bundle savedInstanceState)
		{
			base.OnCreate (savedInstanceState);

            SetContentView (Resource.Layout.Main);

            Presenter = new TwitterPresenter(this, new TwitterRepoImpl());

            TwitterList = FindViewById<ListView> (Resource.Id.twitterList);

            NoTweetsLabel = FindViewById<TextView>(Resource.Id.noTweetsMessage);

            progressDialog = new ProgressDialog(this);
            progressDialog.SetTitle("Loading Tweets");

            Presenter.LoadFeed();
		}