protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Set our view from the "main" layout resource //SetContentView(Resource.Layout.Main); Monologue_ = new Monologue(); Monologue_.ArticlesLoaded += () => RunOnUiThread(MonologueOnArticlesLoaded); Monologue_.Initialize(); }
public override void ViewDidLoad() { base.ViewDidLoad (); // // Perform any additional setup after loading the view, typically from a nib. // NavigationItem.LeftBarButtonItem = EditButtonItem; // var addButton = new UIBarButtonItem (UIBarButtonSystemItem.Add, AddNewItem); // NavigationItem.RightBarButtonItem = addButton; Monologue_ = new Monologue (); Monologue_.ArticlesLoaded += () => InvokeOnMainThread(() => TableView.ReloadData()); TableView.Source = dataSource = new DataSource<Article> (this, Monologue_.Articles, (a) => a.Title, (a) => a.Url); Monologue_.Initialize (); }