Exemplo n.º 1
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // The account manager stores all the account info. Create this when your app launches
            var accountMgr = new DBAccountManager (key: appKey, secret: appSecret);
            DBAccountManager.SetSharedManager (accountMgr);
            var account = accountMgr.LinkedAccount;

            if (account != null) {
                var filesystem = new DBFilesystem (account);
                DBFilesystem.SetSharedFilesystem (filesystem);
            }

            window = new UIWindow (UIScreen.MainScreen.Bounds);

            loginController = new DVCLogin ();
            navController = new UINavigationController (loginController);
            window.RootViewController = navController;
            window.MakeKeyAndVisible ();

            return true;
        }
Exemplo n.º 2
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // The account manager stores all the account info. Create this when your app launches
            var accountMgr = new DBAccountManager(key: appKey, secret: appSecret);

            DBAccountManager.SharedManager = accountMgr;
            var account = accountMgr.LinkedAccount;

            if (account != null)
            {
                var filesystem = new DBFilesystem(account);
                DBFilesystem.SharedFilesystem = filesystem;
            }

            window = new UIWindow(UIScreen.MainScreen.Bounds);

            loginController           = new DVCLogin();
            navController             = new UINavigationController(loginController);
            window.RootViewController = navController;
            window.MakeKeyAndVisible();

            return(true);
        }