public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			Forms.Init ();
			// create a new window instance based on the screen size
			window = new UIWindow (UIScreen.MainScreen.Bounds);


			#region Azure stuff
			CurrentPlatform.Init ();
			Client = new MobileServiceClient (
				Constants.Url, 
				Constants.Key);	
			todoTable = Client.GetTable<TodoItem>(); 
			todoItemManager = new TodoItemManager(todoTable);

			App.SetTodoItemManager (todoItemManager);
			#endregion region

			#region Text to Speech stuff
			App.SetTextToSpeech (new Speech ());
			#endregion region

			// If you have defined a view, add it here:
			// window.RootViewController  = navigationController;
			window.RootViewController = App.GetMainPage ().CreateViewController ();

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

			return true;
		}
Example #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);


            #region Parse stuff
            todoItemManager = new TodoItemManager(ParseStorage.Default);

            App.SetTodoItemManager(todoItemManager);

            #endregion

            #region Text to Speech stuff
            App.SetTextToSpeech(new Speech());
            #endregion region

            // If you have defined a view, add it here:
            // window.RootViewController  = navigationController;
            window.RootViewController = App.GetMainPage().CreateViewController();

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

            return(true);
        }
Example #3
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);


            #region Azure stuff
            CurrentPlatform.Init();
            Client = new MobileServiceClient(
                Constants.Url,
                Constants.Key);
            todoTable       = Client.GetTable <TodoItem>();
            todoItemManager = new TodoItemManager(todoTable);

            App.SetTodoItemManager(todoItemManager);
            #endregion region

            #region Text to Speech stuff
            App.SetTextToSpeech(new Speech());
            #endregion region

            // If you have defined a view, add it here:
            // window.RootViewController  = navigationController;
            window.RootViewController = App.GetMainPage().CreateViewController();

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

            return(true);
        }
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			Forms.Init ();
			// create a new window instance based on the screen size
			window = new UIWindow (UIScreen.MainScreen.Bounds);


			#region Parse stuff
			todoItemManager = new TodoItemManager(ParseStorage.Default);

			App.SetTodoItemManager (todoItemManager);

			#endregion

			#region Text to Speech stuff
			App.SetTextToSpeech (new Speech ());
			#endregion region

			// If you have defined a view, add it here:
			// window.RootViewController  = navigationController;
			window.RootViewController = App.GetMainPage ().CreateViewController ();

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

			return true;
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Xamarin.Forms.Forms.Init(this, bundle);

            #region Azure stuff
            CurrentPlatform.Init();

            Client = new MobileServiceClient(
                Constants.Url,
                Constants.Key);


            #region Azure Sync stuff
            // http://azure.microsoft.com/en-us/documentation/articles/mobile-services-xamarin-android-get-started-offline-data/
            // new code to initialize the SQLite store
            string path = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "test1.db");

            if (!File.Exists(path))
            {
                File.Create(path).Dispose();
            }

            var store = new MobileServiceSQLiteStore(path);
            store.DefineTable <TodoItem>();

            Client.SyncContext.InitializeAsync(store).Wait();
            #endregion


            todoTable       = Client.GetSyncTable <TodoItem>();
            todoItemManager = new TodoItemManager(Client, todoTable);

            App.SetTodoItemManager(todoItemManager);
            #endregion region

            #region Text to Speech stuff
            App.SetTextToSpeech(new Speech());
            #endregion

            SetPage(App.GetMainPage());
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Xamarin.Forms.Forms.Init(this, bundle);

            #region Parse stuff
            todoItemManager = new TodoItemManager(ParseStorage.Default);

            App.SetTodoItemManager(todoItemManager);

            #endregion

            #region Text to Speech stuff
            App.SetTextToSpeech(new Speech());
            #endregion

            SetPage(App.GetMainPage());
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			Xamarin.Forms.Forms.Init (this, bundle);

			#region Azure stuff
			CurrentPlatform.Init ();

			Client = new MobileServiceClient (
				Constants.Url, 
				Constants.Key);		


			#region Azure Sync stuff
			// http://azure.microsoft.com/en-us/documentation/articles/mobile-services-xamarin-android-get-started-offline-data/
			// new code to initialize the SQLite store
			string path = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "test1.db");

			if (!File.Exists(path))
			{
				File.Create(path).Dispose();
			}

			var store = new MobileServiceSQLiteStore(path);
			store.DefineTable<TodoItem>();

			Client.SyncContext.InitializeAsync(store).Wait();
			#endregion


			todoTable = Client.GetSyncTable<TodoItem>(); 
			todoItemManager = new TodoItemManager(Client, todoTable);

			App.SetTodoItemManager (todoItemManager);
			#endregion region

			#region Text to Speech stuff
			App.SetTextToSpeech (new Speech ());
			#endregion

			SetPage (App.GetMainPage ());
		}
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			Xamarin.Forms.Forms.Init (this, bundle);

			#region Parse stuff
			todoItemManager = new TodoItemManager(ParseStorage.Default);

			App.SetTodoItemManager (todoItemManager);

			#endregion

			#region Text to Speech stuff
			App.SetTextToSpeech (new Speech ());
			#endregion

			SetPage (App.GetMainPage ());
		}
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			Forms.Init ();
			// create a new window instance based on the screen size
			window = new UIWindow (UIScreen.MainScreen.Bounds);


			#region Azure stuff
			CurrentPlatform.Init ();
			SQLitePCL.CurrentPlatform.Init();

			Client = new MobileServiceClient (
				Constants.Url, 
				Constants.Key);	

			#region Azure Sync stuff
			// http://azure.microsoft.com/en-us/documentation/articles/mobile-services-xamarin-android-get-started-offline-data/
			// new code to initialize the SQLite store
			InitializeStoreAsync().Wait();
			#endregion

			todoTable = Client.GetSyncTable<TodoItem>(); 
			todoItemManager = new TodoItemManager(Client, todoTable);

			App.SetTodoItemManager (todoItemManager);
			#endregion region

			#region Text to Speech stuff
			App.SetTextToSpeech (new Speech ());
			#endregion region

			// If you have defined a view, add it here:
			// window.RootViewController  = navigationController;
			window.RootViewController = App.GetMainPage ().CreateViewController ();

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

			return true;
		}
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            // create a new window instance based on the screen size
            window = new UIWindow(UIScreen.MainScreen.Bounds);


            #region Azure stuff
            CurrentPlatform.Init();
            SQLitePCL.CurrentPlatform.Init();

            Client = new MobileServiceClient(
                Constants.Url,
                Constants.Key);

            #region Azure Sync stuff
            // http://azure.microsoft.com/en-us/documentation/articles/mobile-services-xamarin-android-get-started-offline-data/
            // new code to initialize the SQLite store
            InitializeStoreAsync().Wait();
            #endregion

            todoTable       = Client.GetSyncTable <TodoItem>();
            todoItemManager = new TodoItemManager(Client, todoTable);

            App.SetTodoItemManager(todoItemManager);
            #endregion region

            #region Text to Speech stuff
            App.SetTextToSpeech(new Speech());
            #endregion region

            // If you have defined a view, add it here:
            // window.RootViewController  = navigationController;
            window.RootViewController = App.GetMainPage().CreateViewController();

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

            return(true);
        }
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

			Xamarin.Forms.Forms.Init (this, bundle);

			#region Azure stuff
			CurrentPlatform.Init ();
			Client = new MobileServiceClient (
				Constants.Url, 
				Constants.Key);		
			todoTable = Client.GetTable<TodoItem>(); 
			todoItemManager = new TodoItemManager(todoTable);

			App.SetTodoItemManager (todoItemManager);
			#endregion region

			#region Text to Speech stuff
			App.SetTextToSpeech (new Speech ());
			#endregion

			SetPage (App.GetMainPage ());
		}
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Xamarin.Forms.Forms.Init(this, bundle);

            #region Azure stuff
            CurrentPlatform.Init();
            Client = new MobileServiceClient(
                Constants.Url,
                Constants.Key);
            todoTable       = Client.GetTable <TodoItem>();
            todoItemManager = new TodoItemManager(todoTable);

            App.SetTodoItemManager(todoItemManager);
            #endregion region

            #region Text to Speech stuff
            App.SetTextToSpeech(new Speech());
            #endregion

            SetPage(App.GetMainPage());
        }
Example #13
0
		public static void SetTodoItemManager (TodoItemManager todoItemManager)
		{
			TodoManager = todoItemManager;
		}