void ReleaseDesignerOutlets() { if (AddParticipantButton != null) { AddParticipantButton.Dispose(); AddParticipantButton = null; } if (ContactTabBarItem != null) { ContactTabBarItem.Dispose(); ContactTabBarItem = null; } if (DataTable != null) { DataTable.Dispose(); DataTable = null; } if (FeedbackTabBarItem != null) { FeedbackTabBarItem.Dispose(); FeedbackTabBarItem = null; } if (ScheduleTabBarItem != null) { ScheduleTabBarItem.Dispose(); ScheduleTabBarItem = null; } if (SendSubscriptionButton != null) { SendSubscriptionButton.Dispose(); SendSubscriptionButton = null; } if (SubscribeTabBarItem != null) { SubscribeTabBarItem.Dispose(); SubscribeTabBarItem = null; } if (TabBar != null) { TabBar.Dispose(); TabBar = null; } if (TvPleaseLogin != null) { TvPleaseLogin.Dispose(); TvPleaseLogin = null; } }
public override void ViewDidLoad() { CurrentNavigationItem = NavigationItem; base.ViewDidLoad(); TabBar.ItemSelected += NavigateOnTabBar; Title = Application.Locator.CourseViewModel.Course.Title; IdentityChanged(); TabBar.SelectedItem = SubscribeTabBarItem; _tableSource = new SubscribeTableSource(View); DataTable.Source = _tableSource; AddParticipantButton.SetCommand("TouchUpInside", Vm.AddParticipantCommand); SendSubscriptionButton.SetCommand("TouchUpInside", Vm.SendSubscriptionCommand); Vm.Subscription.Participants.CollectionChanged += (sender, args) => DataTable.ReloadData(); }