public void callStock(string sSelectedName) { UINavigationController ctrl = new UINavigationController(); if (sSelectedName == "Home Screen") { ViewController_Home controller = this.Storyboard.InstantiateViewController("ViewController_Home") as ViewController_Home; ctrl.PushViewController(controller, true); } else if (sSelectedName == "Chat") { ViewController_ChatList controller = this.Storyboard.InstantiateViewController("ViewController_ChatList") as ViewController_ChatList; ctrl.PushViewController(controller, true); } else { ViewController_Stock controller = this.Storyboard.InstantiateViewController("ViewController_Stock_menu") as ViewController_Stock; ctrl.PushViewController(controller, true); } window.RootViewController = ctrl; window.MakeKeyAndVisible(); }
public TableSourceSearch(ViewController_Home owner, string sSearchType) { this.owner = owner; this.sSearchType = sSearchType; }