This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8" ?> | |
| <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
| x:Class="PrismApp.Views.MainPage" | |
| Title="{Binding Title}"> | |
| <StackLayout HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"> | |
| <Label Text="Welcome to Xamarin Forms and Prism!" /> | |
| <Button Text="Go to Second Page" Command="{Binding NavigateToSecond}"></Button> | |
| </StackLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /****** Object: Table [dbo].[Customer] Script Date: 5/20/2018 10:26:06 AM ******/ | |
| SET ANSI_NULLS ON | |
| GO | |
| SET QUOTED_IDENTIFIER ON | |
| GO | |
| CREATE TABLE [dbo].[Customer]( | |
| [Id] [int] IDENTITY(1,1) NOT NULL, | |
| [Name] [nvarchar](50) NULL, | |
| [Email] [nvarchar](200) NULL, | |
| [Phone] [nvarchar](200) NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static void CreateABucket() | |
| { | |
| try | |
| { | |
| PutBucketRequest request = new PutBucketRequest(); | |
| request.BucketName = bucketName; | |
| client.PutBucket(request); | |
| } | |
| catch (AmazonS3Exception amazonS3Exception) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static void CreateABucket() | |
| { | |
| try | |
| { | |
| PutBucketRequest request = new PutBucketRequest(); | |
| request.BucketName = bucketName; | |
| var result = client.PutBucket(request); | |
| if (result.HttpStatusCode == HttpStatusCode.OK) | |
| { | |
| Console.WriteLine("Bucket created"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static void WritingAnObject() | |
| { | |
| try | |
| { | |
| // simple object put | |
| PutObjectRequest request = new PutObjectRequest() | |
| { | |
| ContentBody = "this is a test", | |
| BucketName = bucketName, | |
| Key = keyName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Entity name="Product"> | |
| <data name="Id" type="int" form="no"></data> | |
| <data name="Title" type="string"></data> | |
| <data name="Price" type="money"></data> | |
| <data name="Description" type="string"></data> | |
| <data name="Quantity" type="int"></data> | |
| <data name="CreatedBy" type="foriegnKey"></data> | |
| </Entity> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { NgModule } from '@angular/core'; | |
| import { FormsModule } from '@angular/forms'; | |
| import { HttpClientModule } from '@angular/common/http'; | |
| import { RouterModule } from '@angular/router'; | |
| import { AppComponent } from './app.component'; | |
| import { NavMenuComponent } from './nav-menu/nav-menu.component'; | |
| import { HomeComponent } from './home/home.component'; | |
| import { CounterComponent } from './counter/counter.component'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <h3>{{data}}</h3> | |
| <input type="text" [(ngModel)]="data" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <TabBar> | |
| <Tab Title="Browse" Icon="tab_feed.png"> | |
| <ShellContent ContentTemplate="{DataTemplate local:ItemsPage}" /> | |
| </Tab> | |
| <Tab Title="About" Icon="tab_about.png"> | |
| <ShellContent ContentTemplate="{DataTemplate local:AboutPage}" /> | |
| </Tab> | |
| </TabBar> |