public override void ViewDidLoad() { base.ViewDidLoad (); BusyView = new XamarinEvolveIOS.BusyView (this.View.Bounds); NavigationItem.BackBarButtonItem = new UIBarButtonItem ( "Back", UIBarButtonItemStyle.Bordered, null, null); TableView = new UITableView (View.Bounds, UITableViewStyle.Grouped); TableView.DataSource = new PlaceInfoViewDataSource (this); TableView.Delegate = new PlaceInfoViewDelegate (this); TableView.RowHeight = 50; View.Add (TableView); this.View.Add (BusyView); BusyView.Busy = true; LoadPlaceCheckInInfo (); }
public override void LoadView() { base.LoadView (); BusyView = new XamarinEvolveIOS.BusyView (this.View.Bounds); Title = "Attendees"; Users = new UserList (); this.TableView = new UITableView (this.View.Bounds, UITableViewStyle.Grouped); TableView.DataSource = new UsersViewDataSource (UserListGetter); TableView.Delegate = new UsersViewDelegate (UserListGetter, NavigationController); this.View.Add (BusyView); BusyView.Busy = true; Engine.Instance.UserAccess.GetUsers ((userList) => { this.InvokeOnMainThread (delegate { Users = userList.UserList; BusyView.Busy = false; this.TableView.ReloadData (); }); }); }
public override void LoadView() { base.LoadView (); this.Title = CurrentUser.IsLocalUser && this is LocalProfileViewController? "My Profile" : "Profile"; BusyView = new XamarinEvolveIOS.BusyView (View.Bounds); BusyView.Busy = false; View.Add (BusyView); TableView.DataSource = new LocalUserProfileDataSource ( this, CurrentUser); TableView.Delegate = new LocalUserProfileDelegate ( this, CurrentUser); SetupEditButton (); }