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(); }
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(); }