public override void OnCreate() { base.OnCreate(); TodoContractClient = new TodoContractClient("http://40.118.255.235:8000", "http://40.118.255.235/eth/v1.2"); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Current = this; // create a new window instance based on the screen size window = new UIWindow(UIScreen.MainScreen.Bounds); // make the window visible window.MakeKeyAndVisible(); TodoContractClient = new TodoContractClient("http://40.118.255.235:8000", "http://40.118.255.235/eth/v1.2"); // create our nav controller navController = new UINavigationController(); // create our Todo list screen homeViewController = new Screens.HomeScreen(); // push the view controller onto the nav controller and show the window navController.PushViewController(homeViewController, false); window.RootViewController = navController; window.MakeKeyAndVisible(); return(true); }