Exemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            try
            {
                // Override point for customization after application launch.
                // If not required for your application you can safely delete this method
                // create a new window instance based on the screen size
                Window = new UIWindow(UIScreen.MainScreen.Bounds);

                var cvc = new CustomViewController();

                var navController = new UINavigationController(cvc);

                Window.RootViewController = navController;

                // make the window visible
                Window.MakeKeyAndVisible();

                var syncThread = new Thread(new ThreadStart(SyncDatabases));
                syncThread.Start();

                return(true);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error in FinishedLaunching: " + ex.Message);
                return(false);
            }
        }
Exemplo n.º 2
0
 public TableSource(List <Note> items, CustomViewController owner)
 {
     _tableItems = items;
     this._owner = owner;
 }