public override void ViewDidLoad() { base.ViewDidLoad(); this.NavigationItem.HidesBackButton = true; this.NavigationItem.SetRightBarButtonItem( new UIBarButtonItem(UIBarButtonSystemItem.Action, (sender, args) => { NSString state = (NSString)ShowKit.ShowKit.GetStateForKey(ShowKit.Constants.SHKConnectionStatusKey); switch (state) { case ShowKit.Constants.SHKConnectionStatusLoggedIn: ShowKit.ShowKit.Logout(); break; case ShowKit.Constants.SHKConnectionStatusInCall: ShowKit.ShowKit.HangupCall(); break; default: this.NavigationController.PopViewControllerAnimated(true); Console.WriteLine("default here"); break; } }) , true); this.dashboardViewController = this; this.alertDelegate = new AlertDelegate(this); this.alertGestureDelegate = new AlertGestureDelegate(this); }
public AlertGestureDelegate(DashboardViewController viewController) { this.dashboardViewController = viewController; }