Esempio n. 1
0
        public App()
        {
            //MAKE THIS ASYNC AND PULL THIS OUT OF THE CONSTRUCTOR
            MyAzureBlobStorage   = new AzureBlobStorage();
            MyCloudBlobClient    = MyAzureBlobStorage.CreateCloudBlobClient();
            MyCloudBlobContainer = MyAzureBlobStorage.CreateCloudBlobClientAndContainer(ContainerName);

            string dbPath = FileAccessHelper.GetLocalFilePath("asa16dog6.db3");

            //USE THIS FOR LIST PAGE
            DogRep = new DogRepository(dbPath);

            //USE THIS FOR LIST PHOTO PAGE
            DogPhotoRep = new DogPhotoRepository(dbPath);

            //USE THIS FOR LIST PHOTO BASE SIXTY FOUR PAGE
            DogRepBaseSixtyFour = new DogRepositoryBaseSixtyFour(dbPath);

            DogRepBlob = new DogRepositoryBlob(dbPath);

            var applicationStartPage = new FirstPage();

            var myNavigationPage = new NavigationPage(applicationStartPage);

            MainPage = myNavigationPage;

            //Initialize Dog Photo View Page
            MyDogListMVVMPage        = new DogListMVVMPage();
            MyDogListPhotoPage       = new DogListPhotoPage();
            MyDogListPhotoBase64Page = new DogListPhotoBase64Page();
            MyDogListPhotoBlobPage   = new DogListPhotoBlobPage();
        }
Esempio n. 2
0
        public App()
        {
            string dbPath = FileAccessHelper.GetLocalFilePath("dog16.db3");

            DogRep = new DogRepository(dbPath);

            var applicationStartPage = new FirstPage();

            //// The root page of your application
            //var content = new ContentPage {
            //	Title = "ASampleApp",
            //	Content = new StackLayout {
            //		VerticalOptions = LayoutOptions.Center,
            //		Children = {
            //			new Label {
            //				HorizontalTextAlignment = TextAlignment.Center,
            //				Text = "Welcome to Xamarin Forms!"
            //			}
            //		}
            //	}
            //};
            var myNavigationPage = new NavigationPage(applicationStartPage);

            MainPage = myNavigationPage;

            //Initialize Dog Photo View Page
            MyDogListPhotoPage = new DogListPhotoPage();

            //THIS WILL RUN EACH TIME YOU CHANGE THE DATABASE (ie. changing dbPath)
            IfDogSQLListEmptyThenFill();
        }
Esempio n. 3
0
        public App()
        {
            //MAKE THIS ASYNC AND PULL THIS OUT OF THE CONSTRUCTOR



            MyAzureBlobStorage   = new AzureBlobStorage();
            MyCloudBlobClient    = MyAzureBlobStorage.CreateCloudBlobClient();
            MyCloudBlobContainer = MyAzureBlobStorage.CreateCloudBlobClientAndContainer(ContainerName);



            string dbPath = FileAccessHelper.GetLocalFilePath("adog1.db3");

            //USE THIS FOR LIST AND LIST PHOTO PAGE
            DogRep = new DogRepository(dbPath);

            //USE THIS FOR LIST PHOTO PAGE

            DogPhotoRep = new DogPhotoRepository(dbPath);
            //USE THIS FOR LIST PHOTO BASE SIXTY FOUR PAGE
            DogRepBaseSixtyFour = new DogRepositoryBaseSixtyFour(dbPath);

            DogRepBlob = new DogRepositoryBlob(dbPath);

            var applicationStartPage = new FirstPage();

            //// The root page of your application
            //var content = new ContentPage {
            //	Title = "ASampleApp",
            //	Content = new StackLayout {
            //		VerticalOptions = LayoutOptions.Center,
            //		Children = {
            //			new Label {
            //				HorizontalTextAlignment = TextAlignment.Center,
            //				Text = "Welcome to Xamarin Forms!"
            //			}
            //		}
            //	}
            //};
            var myNavigationPage = new NavigationPage(applicationStartPage);

            MainPage = myNavigationPage;

            //Initialize Dog Photo View Page

            MyDogListMVVMPage        = new DogListMVVMPage();
            MyDogListPhotoPage       = new DogListPhotoPage();
            MyDogListPhotoBase64Page = new DogListPhotoBase64Page();

            MyDogListPhotoBlobPage = new DogListPhotoBlobPage();



            //THIS WILL RUN EACH TIME YOU CHANGE THE PATH OF THE DATABASE (ie. creating a new Database)
            //            IfDogSQLListEmptyThenFill();
        }