-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
614 additions
and
354 deletions.
There are no files selected for viewing
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<ProduceReferenceAssembly>true</ProduceReferenceAssembly> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Xamarin.Forms" Version="4.2.0.709249" /> | ||
<PackageReference Include="Xamarin.Essentials" Version="1.2.0" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" /> | ||
<PackageReference Include="sqlite-net-pcl" Version="1.6.292" /> | ||
<PackageReference Include="Xamarin.Forms" Version="4.4.0.991477" /> | ||
<PackageReference Include="Xamarin.Essentials" Version="1.3.1" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<EmbeddedResource Update="Views\DetailsPage.xaml"> | ||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
</Project> |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Threading.Tasks; | ||
using KentekenShit.Models; | ||
|
||
namespace KentekenShit.Services | ||
{ | ||
public class SQLiteDataStore : IDataStore<Item> | ||
{ | ||
public SQLiteDataStore() | ||
{ | ||
var dbPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "database.db"); | ||
} | ||
|
||
public Task<bool> AddItemAsync(Item item) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public Task<bool> UpdateItemAsync(Item item) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public Task<bool> DeleteItemAsync(string id) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public Task<Item> GetItemAsync(string id) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public Task<IEnumerable<Item>> GetItemsAsync(bool forceRefresh = false) | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace KentekenShit.ViewModels | ||
{ | ||
public class LookupViewModel : BaseViewModel | ||
{ | ||
public LookupViewModel() | ||
{ | ||
Title = "Licence Plate Thing"; | ||
} | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:d="http://xamarin.com/schemas/2014/forms/design" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
x:Class="KentekenShit.Views.DetailsPage"> | ||
<ContentPage.Content> | ||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<StackLayout Grid.Row="0"> | ||
<StackLayout Orientation="Vertical" Padding="16,40,16,40" Spacing="10"> | ||
<Label FontSize="22"> | ||
<Label.FormattedText> | ||
<FormattedString> | ||
<FormattedString.Spans> | ||
<Span Text="Info about" /> | ||
<Span Text=" " /> | ||
<Span Text="48-XR-FF" FontAttributes="Bold" FontSize="22" /> | ||
</FormattedString.Spans> | ||
</FormattedString> | ||
</Label.FormattedText> | ||
</Label> | ||
</StackLayout> | ||
</StackLayout> | ||
|
||
<ScrollView Grid.Row="1"> | ||
<StackLayout Orientation="Vertical" Padding="16,40,16,40" Spacing="10"> | ||
<Label FontSize="15"> | ||
<Label.FormattedText> | ||
<FormattedString> | ||
<FormattedString.Spans> | ||
<Span Text="Make:" /> | ||
<Span Text=" " /> | ||
<Span Text="TOYOTA" FontAttributes="Bold" FontSize="15" /> | ||
</FormattedString.Spans> | ||
</FormattedString> | ||
</Label.FormattedText> | ||
</Label> | ||
<Label FontSize="15"> | ||
<Label.FormattedText> | ||
<FormattedString> | ||
<FormattedString.Spans> | ||
<Span Text="Seets:" /> | ||
<Span Text=" " /> | ||
<Span Text="5" FontAttributes="Bold" FontSize="15" /> | ||
</FormattedString.Spans> | ||
</FormattedString> | ||
</Label.FormattedText> | ||
</Label> | ||
<Label FontSize="15"> | ||
<Label.FormattedText> | ||
<FormattedString> | ||
<FormattedString.Spans> | ||
<Span Text="Cylinder Count:" /> | ||
<Span Text=" " /> | ||
<Span Text="4" FontAttributes="Bold" FontSize="15" /> | ||
</FormattedString.Spans> | ||
</FormattedString> | ||
</Label.FormattedText> | ||
</Label> | ||
<Label FontSize="15"> | ||
<Label.FormattedText> | ||
<FormattedString> | ||
<FormattedString.Spans> | ||
<Span Text="Door Count:" /> | ||
<Span Text=" " /> | ||
<Span Text="4" FontAttributes="Bold" FontSize="15" /> | ||
</FormattedString.Spans> | ||
</FormattedString> | ||
</Label.FormattedText> | ||
</Label> | ||
<Label FontSize="15"> | ||
<Label.FormattedText> | ||
<FormattedString> | ||
<FormattedString.Spans> | ||
<Span Text="Wheel Count:" /> | ||
<Span Text=" " /> | ||
<Span Text="4" FontAttributes="Bold" FontSize="15" /> | ||
</FormattedString.Spans> | ||
</FormattedString> | ||
</Label.FormattedText> | ||
</Label> | ||
<Label FontSize="15"> | ||
<Label.FormattedText> | ||
<FormattedString> | ||
<FormattedString.Spans> | ||
<Span Text="Price:" /> | ||
<Span Text=" €" /> | ||
<Span Text="28549" FontAttributes="Bold" FontSize="15" /> | ||
</FormattedString.Spans> | ||
</FormattedString> | ||
</Label.FormattedText> | ||
</Label> | ||
<Label FontSize="15"> | ||
<Label.FormattedText> | ||
<FormattedString> | ||
<FormattedString.Spans> | ||
<Span Text="Taxi Sign:" /> | ||
<Span Text=" " /> | ||
<Span Text="No" FontAttributes="Bold" FontSize="15" /> | ||
</FormattedString.Spans> | ||
</FormattedString> | ||
</Label.FormattedText> | ||
</Label> | ||
</StackLayout> | ||
</ScrollView> | ||
</Grid> | ||
</ContentPage.Content> | ||
</ContentPage> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
using Xamarin.Forms; | ||
using Xamarin.Forms.Xaml; | ||
|
||
namespace KentekenShit.Views | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class DetailsPage : ContentPage | ||
{ | ||
public DetailsPage() | ||
{ | ||
InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
Title="{Binding Title}" | ||
x:Class="KentekenShit.Views.LookupPage"> | ||
<ContentPage.Content> | ||
<StackLayout> | ||
<Label Text="Welcome" | ||
VerticalOptions="Start" | ||
HorizontalOptions="CenterAndExpand" /> | ||
|
||
<Label Text="Please enter a license plate to look up" | ||
VerticalOptions="Start" | ||
HorizontalOptions="CenterAndExpand" /> | ||
|
||
<Entry Text="48-XR-FF" | ||
VerticalTextAlignment="Center" | ||
HorizontalTextAlignment="Center" | ||
FontSize="50" | ||
WidthRequest="220" | ||
BackgroundColor="Yellow" | ||
HeightRequest="70" | ||
VerticalOptions="Center" | ||
HorizontalOptions="Center" | ||
x:Name="LicencePlateDSte" /> | ||
|
||
<Button Margin="0,10,0,0" Text="Look up" | ||
VerticalOptions="Center" | ||
HorizontalOptions="Center" | ||
WidthRequest="220" | ||
BackgroundColor="#2196F3" | ||
TextColor="White" /> | ||
</StackLayout> | ||
</ContentPage.Content> | ||
</ContentPage> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using KentekenShit.ViewModels; | ||
using Xamarin.Forms; | ||
using Xamarin.Forms.Xaml; | ||
|
||
namespace KentekenShit.Views | ||
{ | ||
[XamlCompilation(XamlCompilationOptions.Compile)] | ||
public partial class LookupPage : ContentPage | ||
{ | ||
LookupViewModel viewModel; | ||
|
||
public LookupPage() | ||
{ | ||
InitializeComponent(); | ||
|
||
BindingContext = viewModel = new LookupViewModel(); | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.