public RSBaseViewController(IntPtr handle)
     : base(handle)
 {
     app = (AppDelegate)UIApplication.SharedApplication.Delegate;
 }
 public RSBaseViewController()
 {
     app = (AppDelegate)UIApplication.SharedApplication.Delegate;
 }
		public async override void RowSelected (UITableView tableView, NSIndexPath indexPath)
		{
			var ItemData = Data [indexPath.Row]; 

			appDelegate = (AppDelegate) UIApplication.SharedApplication.Delegate;

			if (navType == NavigationType.Self) {
				if (!App.authManager.TicketExpired ()) {
					controller.NavigationController.PushViewController (new RSPortfolioViewController (ItemData.Name), true);
				} else {
					await DialogUtil.ShowAlert ("Session Expired", "Your session has expired. Returning to Login Screen", "OK");
					appDelegate.Window.RootViewController = controller.Storyboard.InstantiateViewController("LoginScreen") as TSLoginViewController;
				}
			} else {
				if (!App.authManager.TicketExpired ()) {
					controller.NavigationController.PushViewController (new RSFundDetailViewController (ItemData.Name, ItemData.KeyColor), true);
				} else {
					controller.NavigationController.PopToRootViewController (true);
				}
			}
				
			tableView.DeselectRow (indexPath, true);
		}