First demo
10
README.md
|
@ -4,6 +4,14 @@
|
|||
|
||||
<img src="images/MyTaxiCompany01.png" Width="400" />
|
||||
|
||||
The **objectives** of the demo applications are:
|
||||
|
||||
- Explain how to use maps with the **MVVM** pattern.
|
||||
- How to use **custom pushpins** (images and layouts).
|
||||
- Advanced pushpins with movement.
|
||||
- **Popups** with information.
|
||||
- Drawing **routes**.
|
||||
|
||||
## Screens
|
||||
|
||||
<img src="images/MyTaxiCompany01.png" alt="Login" Width="400" />
|
||||
|
@ -24,6 +32,6 @@ The app targets **three** platforms:
|
|||
* __Visual Studio Community Edition is fully supported!__
|
||||
* Android SDK Tools 25.2.3 or higher
|
||||
* JDK 8.0
|
||||
*
|
||||
|
||||
## Copyright and license
|
||||
Code released under the [MIT license](https://opensource.org/licenses/MIT).
|
|
@ -0,0 +1,263 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 14
|
||||
VisualStudioVersion = 14.0.25420.1
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyTaxyCompany01", "MyTaxyCompany01\MyTaxyCompany01\MyTaxyCompany01.csproj", "{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyTaxyCompany01.Droid", "MyTaxyCompany01\MyTaxyCompany01.Droid\MyTaxyCompany01.Droid.csproj", "{81DF8046-EFAA-4E8F-9608-2C356685D042}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyTaxyCompany01.iOS", "MyTaxyCompany01\MyTaxyCompany01.iOS\MyTaxyCompany01.iOS.csproj", "{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyTaxyCompany01.UWP", "MyTaxyCompany01\MyTaxyCompany01.UWP\MyTaxyCompany01.UWP.csproj", "{786077FF-04C6-468A-B463-B0912097F385}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
|
||||
Ad-Hoc|ARM = Ad-Hoc|ARM
|
||||
Ad-Hoc|iPhone = Ad-Hoc|iPhone
|
||||
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
|
||||
Ad-Hoc|x64 = Ad-Hoc|x64
|
||||
Ad-Hoc|x86 = Ad-Hoc|x86
|
||||
AppStore|Any CPU = AppStore|Any CPU
|
||||
AppStore|ARM = AppStore|ARM
|
||||
AppStore|iPhone = AppStore|iPhone
|
||||
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
|
||||
AppStore|x64 = AppStore|x64
|
||||
AppStore|x86 = AppStore|x86
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|ARM = Debug|ARM
|
||||
Debug|iPhone = Debug|iPhone
|
||||
Debug|iPhoneSimulator = Debug|iPhoneSimulator
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|ARM = Release|ARM
|
||||
Release|iPhone = Release|iPhone
|
||||
Release|iPhoneSimulator = Release|iPhoneSimulator
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|x64.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Ad-Hoc|x86.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|Any CPU.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|ARM.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|ARM.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|iPhone.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|iPhone.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|x64.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|x64.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|x86.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.AppStore|x86.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|ARM.Build.0 = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|iPhone.Build.0 = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|ARM.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|iPhone.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|iPhone.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|x64.Build.0 = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}.Release|x86.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|ARM.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|ARM.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|ARM.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|x64.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|x64.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|x64.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|x86.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|x86.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Ad-Hoc|x86.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|Any CPU.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|ARM.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|ARM.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|ARM.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|iPhone.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|iPhone.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|iPhone.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|x64.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|x64.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|x64.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|x86.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|x86.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.AppStore|x86.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|ARM.ActiveCfg = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|ARM.Build.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|ARM.Deploy.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|iPhone.ActiveCfg = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|iPhone.Build.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|iPhone.Deploy.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|x64.Deploy.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Debug|x86.Deploy.0 = Debug|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|ARM.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|ARM.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|iPhone.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|iPhone.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|iPhone.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|x64.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|x64.Deploy.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|x86.Build.0 = Release|Any CPU
|
||||
{81DF8046-EFAA-4E8F-9608-2C356685D042}.Release|x86.Deploy.0 = Release|Any CPU
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Ad-Hoc|ARM.ActiveCfg = Ad-Hoc|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Ad-Hoc|x64.ActiveCfg = Ad-Hoc|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Ad-Hoc|x86.ActiveCfg = Ad-Hoc|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.AppStore|ARM.ActiveCfg = AppStore|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.AppStore|iPhone.Build.0 = AppStore|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.AppStore|x64.ActiveCfg = AppStore|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.AppStore|x86.ActiveCfg = AppStore|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|Any CPU.ActiveCfg = Debug|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|Any CPU.Build.0 = Debug|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|ARM.ActiveCfg = Debug|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|iPhone.ActiveCfg = Debug|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|iPhone.Build.0 = Debug|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|x64.ActiveCfg = Debug|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Debug|x86.ActiveCfg = Debug|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Release|Any CPU.ActiveCfg = Release|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Release|ARM.ActiveCfg = Release|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Release|iPhone.ActiveCfg = Release|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Release|iPhone.Build.0 = Release|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Release|x64.ActiveCfg = Release|iPhone
|
||||
{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}.Release|x86.ActiveCfg = Release|iPhone
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|Any CPU.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|Any CPU.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|Any CPU.Deploy.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|ARM.ActiveCfg = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|ARM.Build.0 = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|ARM.Deploy.0 = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|iPhone.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|iPhone.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|iPhone.Deploy.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|x64.ActiveCfg = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|x64.Build.0 = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|x64.Deploy.0 = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|x86.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|x86.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Ad-Hoc|x86.Deploy.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|Any CPU.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|Any CPU.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|Any CPU.Deploy.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|ARM.ActiveCfg = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|ARM.Build.0 = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|ARM.Deploy.0 = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|iPhone.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|iPhone.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|iPhone.Deploy.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|iPhoneSimulator.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|iPhoneSimulator.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|iPhoneSimulator.Deploy.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|x64.ActiveCfg = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|x64.Build.0 = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|x64.Deploy.0 = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|x86.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|x86.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.AppStore|x86.Deploy.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|Any CPU.ActiveCfg = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|Any CPU.Build.0 = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|Any CPU.Deploy.0 = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|ARM.ActiveCfg = Debug|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|ARM.Build.0 = Debug|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|ARM.Deploy.0 = Debug|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|iPhone.ActiveCfg = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|iPhone.Build.0 = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|iPhone.Deploy.0 = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|iPhoneSimulator.ActiveCfg = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|x64.Build.0 = Debug|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|x64.Deploy.0 = Debug|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|x86.Build.0 = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Debug|x86.Deploy.0 = Debug|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|Any CPU.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|ARM.ActiveCfg = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|ARM.Build.0 = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|ARM.Deploy.0 = Release|ARM
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|iPhone.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|iPhoneSimulator.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|x64.ActiveCfg = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|x64.Build.0 = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|x64.Deploy.0 = Release|x64
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|x86.ActiveCfg = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|x86.Build.0 = Release|x86
|
||||
{786077FF-04C6-468A-B463-B0912097F385}.Release|x86.Deploy.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,19 @@
|
|||
Any raw assets you want to be deployed with your application can be placed in
|
||||
this directory (and child directories) and given a Build Action of "AndroidAsset".
|
||||
|
||||
These files will be deployed with you package and will be accessible using Android's
|
||||
AssetManager, like this:
|
||||
|
||||
public class ReadAsset : Activity
|
||||
{
|
||||
protected override void OnCreate (Bundle bundle)
|
||||
{
|
||||
base.OnCreate (bundle);
|
||||
|
||||
InputStream input = Assets.Open ("my_asset.txt");
|
||||
}
|
||||
}
|
||||
|
||||
Additionally, some Android functions will automatically load asset files:
|
||||
|
||||
Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
using Android.App;
|
||||
using Android.Content.PM;
|
||||
using Android.Runtime;
|
||||
using Android.Views;
|
||||
using Android.Widget;
|
||||
using Android.OS;
|
||||
|
||||
namespace MyTaxyCompany01.Droid
|
||||
{
|
||||
[Activity(Label = "MyTaxyCompany01", Icon = "@drawable/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
|
||||
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
|
||||
{
|
||||
protected override void OnCreate(Bundle bundle)
|
||||
{
|
||||
TabLayoutResource = Resource.Layout.Tabbar;
|
||||
ToolbarResource = Resource.Layout.Toolbar;
|
||||
|
||||
base.OnCreate(bundle);
|
||||
|
||||
global::Xamarin.Forms.Forms.Init(this, bundle);
|
||||
Xamarin.FormsMaps.Init(this, bundle);
|
||||
LoadApplication(new App());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,179 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{81DF8046-EFAA-4E8F-9608-2C356685D042}</ProjectGuid>
|
||||
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>MyTaxyCompany01.Droid</RootNamespace>
|
||||
<AssemblyName>MyTaxyCompany01.Droid</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AndroidApplication>true</AndroidApplication>
|
||||
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
|
||||
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
|
||||
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
|
||||
<AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk>
|
||||
<TargetFrameworkVersion>v7.0</TargetFrameworkVersion>
|
||||
<AndroidSupportedAbis>armeabi,armeabi-v7a,x86</AndroidSupportedAbis>
|
||||
<AndroidStoreUncompressedFileExtensions />
|
||||
<MandroidI18n />
|
||||
<JavaMaximumHeapSize />
|
||||
<JavaOptions />
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidUseSharedRuntime>True</AndroidUseSharedRuntime>
|
||||
<AndroidLinkMode>None</AndroidLinkMode>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
|
||||
<AndroidLinkMode>SdkOnly</AndroidLinkMode>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="FormsViewGroup, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\MonoAndroid10\FormsViewGroup.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Practices.ServiceLocation, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Practices.Unity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Unity.4.0.1\lib\portable-net45+wp80+win8+wpa81+MonoAndroid10+MonoTouch10\Microsoft.Practices.Unity.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Android" />
|
||||
<Reference Include="mscorlib" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.ObjectModel" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Xamarin.Android.Support.Animated.Vector.Drawable, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Animated.Vector.Drawable.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Android.Support.Design, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Android.Support.Design.23.3.0\lib\MonoAndroid43\Xamarin.Android.Support.Design.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Android.Support.v4.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Android.Support.v7.AppCompat, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Android.Support.v7.AppCompat.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.AppCompat.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Android.Support.v7.CardView, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Android.Support.v7.CardView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.CardView.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Android.Support.v7.MediaRouter, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Android.Support.v7.MediaRouter.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.MediaRouter.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Android.Support.v7.RecyclerView, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Android.Support.v7.RecyclerView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.RecyclerView.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Android.Support.Vector.Drawable, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Vector.Drawable.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\MonoAndroid10\Xamarin.Forms.Core.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Maps, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.Maps.2.3.4.184-pre1\lib\MonoAndroid10\Xamarin.Forms.Maps.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Maps.Android, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.Maps.2.3.4.184-pre1\lib\MonoAndroid10\Xamarin.Forms.Maps.Android.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\MonoAndroid10\Xamarin.Forms.Platform.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Platform.Android, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.GooglePlayServices.Base, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.GooglePlayServices.Base.29.0.0.1\lib\MonoAndroid41\Xamarin.GooglePlayServices.Base.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.GooglePlayServices.Basement, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.GooglePlayServices.Basement.29.0.0.1\lib\MonoAndroid41\Xamarin.GooglePlayServices.Basement.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.GooglePlayServices.Maps, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.GooglePlayServices.Maps.29.0.0.1\lib\MonoAndroid41\Xamarin.GooglePlayServices.Maps.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="MainActivity.cs" />
|
||||
<Compile Include="Resources\Resource.Designer.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Resources\AboutResources.txt" />
|
||||
<None Include="Assets\AboutAssets.txt" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\drawable\icon.png" />
|
||||
<AndroidResource Include="Resources\drawable-hdpi\icon.png" />
|
||||
<AndroidResource Include="Resources\drawable-xhdpi\icon.png" />
|
||||
<AndroidResource Include="Resources\drawable-xxhdpi\icon.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Properties\AndroidManifest.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AndroidResource Include="Resources\layout\Tabbar.axml" />
|
||||
<AndroidResource Include="Resources\layout\Toolbar.axml" />
|
||||
<AndroidResource Include="Resources\values\styles.xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MyTaxyCompany01\MyTaxyCompany01.csproj">
|
||||
<Project>{05059023-3f8b-4009-b5c5-f7ddcac28494}</Project>
|
||||
<Name>MyTaxyCompany01</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
|
||||
<Import Project="..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets'))" />
|
||||
<Error Condition="!Exists('..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets'))" />
|
||||
</Target>
|
||||
<Import Project="..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
|
||||
</Project>
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<uses-sdk android:minSdkVersion="15" />
|
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
<uses-permission android:name="android.permission.INTERNET" />
|
||||
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
|
||||
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
<application android:label="MyTaxyCompany01.Droid">
|
||||
<meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="AIzaSyBW-GFo0w0wXxrEAXSIBUZ3yF0ErW6jdlc" />
|
||||
</application>
|
||||
</manifest>
|
|
@ -0,0 +1,34 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using Android.App;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("MyTaxyCompany01.Droid")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MyTaxyCompany01.Droid")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
||||
// Add some common permissions, these can be removed if not needed
|
||||
[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
|
||||
[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
|
|
@ -0,0 +1,50 @@
|
|||
Images, layout descriptions, binary blobs and string dictionaries can be included
|
||||
in your application as resource files. Various Android APIs are designed to
|
||||
operate on the resource IDs instead of dealing with images, strings or binary blobs
|
||||
directly.
|
||||
|
||||
For example, a sample Android app that contains a user interface layout (main.xml),
|
||||
an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
|
||||
would keep its resources in the "Resources" directory of the application:
|
||||
|
||||
Resources/
|
||||
drawable-hdpi/
|
||||
icon.png
|
||||
|
||||
drawable-ldpi/
|
||||
icon.png
|
||||
|
||||
drawable-mdpi/
|
||||
icon.png
|
||||
|
||||
layout/
|
||||
main.xml
|
||||
|
||||
values/
|
||||
strings.xml
|
||||
|
||||
In order to get the build system to recognize Android resources, set the build action to
|
||||
"AndroidResource". The native Android APIs do not operate directly with filenames, but
|
||||
instead operate on resource IDs. When you compile an Android application that uses resources,
|
||||
the build system will package the resources for distribution and generate a class called
|
||||
"Resource" that contains the tokens for each one of the resources included. For example,
|
||||
for the above Resources layout, this is what the Resource class would expose:
|
||||
|
||||
public class Resource {
|
||||
public class drawable {
|
||||
public const int icon = 0x123;
|
||||
}
|
||||
|
||||
public class layout {
|
||||
public const int main = 0x456;
|
||||
}
|
||||
|
||||
public class strings {
|
||||
public const int first_string = 0xabc;
|
||||
public const int second_string = 0xbcd;
|
||||
}
|
||||
}
|
||||
|
||||
You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
|
||||
to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
|
||||
string in the dictionary file values/strings.xml.
|
6421
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.Droid/Resources/Resource.Designer.cs
сгенерированный
Normal file
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.Droid/Resources/drawable-hdpi/icon.png
Normal file
После Ширина: | Высота: | Размер: 1.4 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.Droid/Resources/drawable-xhdpi/icon.png
Normal file
После Ширина: | Высота: | Размер: 1.7 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.Droid/Resources/drawable-xxhdpi/icon.png
Normal file
После Ширина: | Высота: | Размер: 2.3 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.Droid/Resources/drawable/icon.png
Normal file
После Ширина: | Высота: | Размер: 1.4 KiB |
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.design.widget.TabLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:id="@+id/sliding_tabs"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||
app:tabIndicatorColor="@android:color/white"
|
||||
app:tabGravity="fill"
|
||||
app:tabMode="fixed" />
|
|
@ -0,0 +1,9 @@
|
|||
<android.support.v7.widget.Toolbar
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="?attr/colorPrimary"
|
||||
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
||||
android:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<resources>
|
||||
|
||||
<style name="MainTheme" parent="MainTheme.Base">
|
||||
</style>
|
||||
<!-- Base theme applied no matter what API -->
|
||||
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
|
||||
<item name="windowNoTitle">true</item>
|
||||
<!--We will be using the toolbar so no need to show ActionBar-->
|
||||
<item name="windowActionBar">false</item>
|
||||
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
|
||||
<!-- colorPrimary is used for the default action bar background -->
|
||||
<item name="colorPrimary">#2196F3</item>
|
||||
<!-- colorPrimaryDark is used for the status bar -->
|
||||
<item name="colorPrimaryDark">#1976D2</item>
|
||||
<!-- colorAccent is used as the default value for colorControlActivated
|
||||
which is used to tint widgets -->
|
||||
<item name="colorAccent">#FF4081</item>
|
||||
<!-- You can also set colorControlNormal, colorControlActivated
|
||||
colorControlHighlight and colorSwitchThumbNormal. -->
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
|
||||
<item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item>
|
||||
</style>
|
||||
|
||||
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
|
||||
<item name="colorAccent">#FF4081</item>
|
||||
</style>
|
||||
</resources>
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="CommonServiceLocator" version="1.3" targetFramework="monoandroid70" />
|
||||
<package id="Unity" version="4.0.1" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="23.3.0" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Android.Support.Design" version="23.3.0" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Android.Support.v4" version="23.3.0" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Android.Support.v7.AppCompat" version="23.3.0" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Android.Support.v7.CardView" version="23.3.0" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Android.Support.v7.MediaRouter" version="23.3.0" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Android.Support.v7.RecyclerView" version="23.3.0" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Android.Support.Vector.Drawable" version="23.3.0" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Forms" version="2.3.4.184-pre1" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.Forms.Maps" version="2.3.4.184-pre1" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.GooglePlayServices.Base" version="29.0.0.1" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.GooglePlayServices.Basement" version="29.0.0.1" targetFramework="monoandroid70" />
|
||||
<package id="Xamarin.GooglePlayServices.Maps" version="29.0.0.1" targetFramework="monoandroid70" />
|
||||
</packages>
|
|
@ -0,0 +1,8 @@
|
|||
<Application
|
||||
x:Class="MyTaxyCompany01.UWP.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:MyTaxyCompany01.UWP"
|
||||
RequestedTheme="Light">
|
||||
|
||||
</Application>
|
|
@ -0,0 +1,107 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.WindowsRuntime;
|
||||
using Windows.ApplicationModel;
|
||||
using Windows.ApplicationModel.Activation;
|
||||
using Windows.Foundation;
|
||||
using Windows.Foundation.Collections;
|
||||
using Windows.UI.Xaml;
|
||||
using Windows.UI.Xaml.Controls;
|
||||
using Windows.UI.Xaml.Controls.Primitives;
|
||||
using Windows.UI.Xaml.Data;
|
||||
using Windows.UI.Xaml.Input;
|
||||
using Windows.UI.Xaml.Media;
|
||||
using Windows.UI.Xaml.Navigation;
|
||||
|
||||
namespace MyTaxyCompany01.UWP
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides application-specific behavior to supplement the default Application class.
|
||||
/// </summary>
|
||||
sealed partial class App : Application
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes the singleton application object. This is the first line of authored code
|
||||
/// executed, and as such is the logical equivalent of main() or WinMain().
|
||||
/// </summary>
|
||||
public App()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.Suspending += OnSuspending;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when the application is launched normally by the end user. Other entry points
|
||||
/// will be used such as when the application is launched to open a specific file.
|
||||
/// </summary>
|
||||
/// <param name="e">Details about the launch request and process.</param>
|
||||
protected override void OnLaunched(LaunchActivatedEventArgs e)
|
||||
{
|
||||
|
||||
#if DEBUG
|
||||
if (System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
this.DebugSettings.EnableFrameRateCounter = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
Frame rootFrame = Window.Current.Content as Frame;
|
||||
|
||||
// Do not repeat app initialization when the Window already has content,
|
||||
// just ensure that the window is active
|
||||
if (rootFrame == null)
|
||||
{
|
||||
// Create a Frame to act as the navigation context and navigate to the first page
|
||||
rootFrame = new Frame();
|
||||
|
||||
rootFrame.NavigationFailed += OnNavigationFailed;
|
||||
|
||||
Xamarin.Forms.Forms.Init(e);
|
||||
|
||||
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
|
||||
{
|
||||
//TODO: Load state from previously suspended application
|
||||
}
|
||||
|
||||
// Place the frame in the current Window
|
||||
Window.Current.Content = rootFrame;
|
||||
}
|
||||
|
||||
if (rootFrame.Content == null)
|
||||
{
|
||||
// When the navigation stack isn't restored navigate to the first page,
|
||||
// configuring the new page by passing required information as a navigation
|
||||
// parameter
|
||||
rootFrame.Navigate(typeof(MainPage), e.Arguments);
|
||||
}
|
||||
// Ensure the current window is active
|
||||
Window.Current.Activate();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when Navigation to a certain page fails
|
||||
/// </summary>
|
||||
/// <param name="sender">The Frame which failed navigation</param>
|
||||
/// <param name="e">Details about the navigation failure</param>
|
||||
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
|
||||
{
|
||||
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when application execution is being suspended. Application state is saved
|
||||
/// without knowing whether the application will be terminated or resumed with the contents
|
||||
/// of memory still intact.
|
||||
/// </summary>
|
||||
/// <param name="sender">The source of the suspend request.</param>
|
||||
/// <param name="e">Details about the suspend request.</param>
|
||||
private void OnSuspending(object sender, SuspendingEventArgs e)
|
||||
{
|
||||
var deferral = e.SuspendingOperation.GetDeferral();
|
||||
//TODO: Save application state and stop any background activity
|
||||
deferral.Complete();
|
||||
}
|
||||
}
|
||||
}
|
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.UWP/Assets/LockScreenLogo.scale-200.png
Normal file
После Ширина: | Высота: | Размер: 1.4 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.UWP/Assets/SplashScreen.scale-200.png
Normal file
После Ширина: | Высота: | Размер: 7.5 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.UWP/Assets/Square150x150Logo.scale-200.png
Normal file
После Ширина: | Высота: | Размер: 2.9 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.UWP/Assets/Square44x44Logo.scale-200.png
Normal file
После Ширина: | Высота: | Размер: 1.6 KiB |
После Ширина: | Высота: | Размер: 1.2 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.UWP/Assets/StoreLogo.png
Normal file
После Ширина: | Высота: | Размер: 1.4 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.UWP/Assets/Wide310x150Logo.scale-200.png
Normal file
После Ширина: | Высота: | Размер: 3.1 KiB |
|
@ -0,0 +1,15 @@
|
|||
<forms:WindowsPage
|
||||
x:Class="MyTaxyCompany01.UWP.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:forms="using:Xamarin.Forms.Platform.UWP"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:MyTaxyCompany01.UWP"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
|
||||
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
||||
|
||||
</Grid>
|
||||
</forms:WindowsPage>
|
|
@ -0,0 +1,12 @@
|
|||
namespace MyTaxyCompany01.UWP
|
||||
{
|
||||
public sealed partial class MainPage
|
||||
{
|
||||
public MainPage()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
Xamarin.FormsMaps.Init(GlobalSetting.BingMapsAPIKey);
|
||||
LoadApplication(new MyTaxyCompany01.App());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,140 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProjectGuid>{786077FF-04C6-468A-B463-B0912097F385}</ProjectGuid>
|
||||
<OutputType>AppContainerExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>MyTaxyCompany01.UWP</RootNamespace>
|
||||
<AssemblyName>MyTaxyCompany01.UWP</AssemblyName>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
|
||||
<TargetPlatformVersion>10.0.14393.0</TargetPlatformVersion>
|
||||
<TargetPlatformMinVersion>10.0.14393.0</TargetPlatformMinVersion>
|
||||
<MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
|
||||
<EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<PackageCertificateKeyFile>Windows_TemporaryKey.pfx</PackageCertificateKeyFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\ARM\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
|
||||
<OutputPath>bin\ARM\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>ARM</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x64\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||
<OutputPath>bin\x64\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<NoWarn>;2008</NoWarn>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<UseVSHostingProcess>false</UseVSHostingProcess>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<Prefer32Bit>true</Prefer32Bit>
|
||||
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
|
||||
<None Include="project.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainPage.xaml.cs">
|
||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<AppxManifest Include="Package.appxmanifest">
|
||||
<SubType>Designer</SubType>
|
||||
</AppxManifest>
|
||||
<None Include="Windows_TemporaryKey.pfx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Properties\Default.rd.xml" />
|
||||
<Content Include="Assets\LockScreenLogo.scale-200.png" />
|
||||
<Content Include="Assets\SplashScreen.scale-200.png" />
|
||||
<Content Include="Assets\Square150x150Logo.scale-200.png" />
|
||||
<Content Include="Assets\Square44x44Logo.scale-200.png" />
|
||||
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
|
||||
<Content Include="Assets\StoreLogo.png" />
|
||||
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="MainPage.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MyTaxyCompany01\MyTaxyCompany01.csproj">
|
||||
<Project>{05059023-3f8b-4009-b5c5-f7ddcac28494}</Project>
|
||||
<Name>MyTaxyCompany01</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '14.0' ">
|
||||
<VisualStudioVersion>14.0</VisualStudioVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
|
||||
</Project>
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(NuGetPackageRoot)' == ''">
|
||||
<NuGetPackageRoot>$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
</PropertyGroup>
|
||||
<ImportGroup>
|
||||
<Import Project="$(NuGetPackageRoot)\Xamarin.Forms.Maps\2.3.4.184-pre1\build\win81\Xamarin.Forms.Maps.props" Condition="Exists('$(NuGetPackageRoot)\Xamarin.Forms.Maps\2.3.4.184-pre1\build\win81\Xamarin.Forms.Maps.props')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(NuGetPackageRoot)' == ''">
|
||||
<NuGetPackageRoot>$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
</PropertyGroup>
|
||||
<ImportGroup>
|
||||
<Import Project="$(NuGetPackageRoot)\Xamarin.Forms\2.3.3.180\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('$(NuGetPackageRoot)\Xamarin.Forms\2.3.3.180\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)\Xamarin.Forms.Maps\2.3.4.184-pre1\build\win81\Xamarin.Forms.Maps.targets" Condition="Exists('$(NuGetPackageRoot)\Xamarin.Forms.Maps\2.3.4.184-pre1\build\win81\Xamarin.Forms.Maps.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" IgnorableNamespaces="uap mp">
|
||||
<Identity Name="16c3a745-8b70-4264-98cb-326d9dc35362" Publisher="CN=javie" Version="1.0.0.0" />
|
||||
<mp:PhoneIdentity PhoneProductId="16c3a745-8b70-4264-98cb-326d9dc35362" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
|
||||
<Properties>
|
||||
<DisplayName>MyTaxyCompany01.UWP</DisplayName>
|
||||
<PublisherDisplayName>javie</PublisherDisplayName>
|
||||
<Logo>Assets\StoreLogo.png</Logo>
|
||||
</Properties>
|
||||
<Dependencies>
|
||||
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
|
||||
</Dependencies>
|
||||
<Resources>
|
||||
<Resource Language="x-generate" />
|
||||
</Resources>
|
||||
<Applications>
|
||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="MyTaxyCompany01.UWP.App">
|
||||
<uap:VisualElements DisplayName="MyTaxyCompany01.UWP" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="MyTaxyCompany01.UWP" BackgroundColor="transparent">
|
||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
|
||||
</uap:DefaultTile>
|
||||
<uap:SplashScreen Image="Assets\SplashScreen.png" />
|
||||
</uap:VisualElements>
|
||||
</Application>
|
||||
</Applications>
|
||||
<Capabilities>
|
||||
<Capability Name="internetClient" />
|
||||
<DeviceCapability Name="location" />
|
||||
</Capabilities>
|
||||
</Package>
|
|
@ -0,0 +1,29 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("MyTaxyCompany01.UWP")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MyTaxyCompany01.UWP")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
[assembly: ComVisible(false)]
|
|
@ -0,0 +1,31 @@
|
|||
<!--
|
||||
This file contains Runtime Directives used by .NET Native. The defaults here are suitable for most
|
||||
developers. However, you can modify these parameters to modify the behavior of the .NET Native
|
||||
optimizer.
|
||||
|
||||
Runtime Directives are documented at http://go.microsoft.com/fwlink/?LinkID=391919
|
||||
|
||||
To fully enable reflection for App1.MyClass and all of its public/private members
|
||||
<Type Name="App1.MyClass" Dynamic="Required All"/>
|
||||
|
||||
To enable dynamic creation of the specific instantiation of AppClass<T> over System.Int32
|
||||
<TypeInstantiation Name="App1.AppClass" Arguments="System.Int32" Activate="Required Public" />
|
||||
|
||||
Using the Namespace directive to apply reflection policy to all the types in a particular namespace
|
||||
<Namespace Name="DataClasses.ViewModels" Seralize="All" />
|
||||
-->
|
||||
|
||||
<Directives xmlns="http://schemas.microsoft.com/netfx/2013/01/metadata">
|
||||
<Application>
|
||||
<!--
|
||||
An Assembly element with Name="*Application*" applies to all assemblies in
|
||||
the application package. The asterisks are not wildcards.
|
||||
-->
|
||||
<Assembly Name="*Application*" Dynamic="Required All" />
|
||||
|
||||
|
||||
<!-- Add your application specific runtime directives here. -->
|
||||
|
||||
|
||||
</Application>
|
||||
</Directives>
|
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.UWP/Windows_TemporaryKey.pfx
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.UniversalWindowsPlatform": "5.0.0",
|
||||
"Unity": "4.0.1",
|
||||
"Xamarin.Forms": "2.3.3.180",
|
||||
"Xamarin.Forms.Maps": "2.3.4.184-pre1"
|
||||
},
|
||||
"frameworks": {
|
||||
"uap10.0": {}
|
||||
},
|
||||
"runtimes": {
|
||||
"win10-arm": {},
|
||||
"win10-arm-aot": {},
|
||||
"win10-x86": {},
|
||||
"win10-x86-aot": {},
|
||||
"win10-x64": {},
|
||||
"win10-x64-aot": {}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
using Foundation;
|
||||
using UIKit;
|
||||
|
||||
namespace MyTaxyCompany01.iOS
|
||||
{
|
||||
// The UIApplicationDelegate for the application. This class is responsible for launching the
|
||||
// User Interface of the application, as well as listening (and optionally responding) to
|
||||
// application events from iOS.
|
||||
[Register("AppDelegate")]
|
||||
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
|
||||
{
|
||||
//
|
||||
// This method is invoked when the application has loaded and is ready to run. In this
|
||||
// method you should instantiate the window, load the UI into it and then make the window
|
||||
// visible.
|
||||
//
|
||||
// You have 17 seconds to return from this method, or iOS will terminate your application.
|
||||
//
|
||||
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
|
||||
{
|
||||
global::Xamarin.Forms.Forms.Init();
|
||||
Xamarin.FormsMaps.Init();
|
||||
LoadApplication(new App());
|
||||
|
||||
return base.FinishedLaunching(app, options);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
<integer>2</integer>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>MyTaxyCompany01</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.yourcompany.MyTaxyCompany01</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleIconFiles</key>
|
||||
<array>
|
||||
<string>Icon-60@2x</string>
|
||||
<string>Icon-60@3x</string>
|
||||
<string>Icon-76</string>
|
||||
<string>Icon-76@2x</string>
|
||||
<string>Default</string>
|
||||
<string>Default@2x</string>
|
||||
<string>Default-568h@2x</string>
|
||||
<string>Default-Portrait</string>
|
||||
<string>Default-Portrait@2x</string>
|
||||
<string>Icon-Small-40</string>
|
||||
<string>Icon-Small-40@2x</string>
|
||||
<string>Icon-Small-40@3x</string>
|
||||
<string>Icon-Small</string>
|
||||
<string>Icon-Small@2x</string>
|
||||
<string>Icon-Small@3x</string>
|
||||
</array>
|
||||
<key>UILaunchStoryboardName</key>
|
||||
<string>LaunchScreen</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
|
||||
namespace MyTaxyCompany01.iOS
|
||||
{
|
||||
public class Application
|
||||
{
|
||||
// This is the main entry point of the application.
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// if you want to use a different Application Delegate class from "AppDelegate"
|
||||
// you can specify it here.
|
||||
UIApplication.Main(args, null, "AppDelegate");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,170 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{D58F68D8-1A82-4F3C-867F-1DAE6DE18524}</ProjectGuid>
|
||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>MyTaxyCompany01.iOS</RootNamespace>
|
||||
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
|
||||
<AssemblyName>MyTaxyCompany01.iOS</AssemblyName>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<MtouchArch>i386, x86_64</MtouchArch>
|
||||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchDebug>true</MtouchDebug>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchArch>i386, x86_64</MtouchArch>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\iPhone\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<MtouchDebug>true</MtouchDebug>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\iPhone\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>True</Optimize>
|
||||
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>False</ConsolePause>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<BuildIpa>True</BuildIpa>
|
||||
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
|
||||
<CodesignKey>iPhone Distribution</CodesignKey>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>True</Optimize>
|
||||
<OutputPath>bin\iPhone\AppStore</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>False</ConsolePause>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<CodesignProvision>Automatic:AppStore</CodesignProvision>
|
||||
<CodesignKey>iPhone Distribution</CodesignKey>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Main.cs" />
|
||||
<Compile Include="AppDelegate.cs" />
|
||||
<None Include="Entitlements.plist" />
|
||||
<None Include="Info.plist" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<ITunesArtwork Include="iTunesArtwork" />
|
||||
<ITunesArtwork Include="iTunesArtwork@2x" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\Default-568h%402x.png" />
|
||||
<BundleResource Include="Resources\Default-Portrait.png" />
|
||||
<BundleResource Include="Resources\Default-Portrait%402x.png" />
|
||||
<BundleResource Include="Resources\Default.png" />
|
||||
<BundleResource Include="Resources\Default%402x.png" />
|
||||
<BundleResource Include="Resources\Icon-60%402x.png" />
|
||||
<BundleResource Include="Resources\Icon-60%403x.png" />
|
||||
<BundleResource Include="Resources\Icon-76.png" />
|
||||
<BundleResource Include="Resources\Icon-76%402x.png" />
|
||||
<BundleResource Include="Resources\Icon-Small-40.png" />
|
||||
<BundleResource Include="Resources\Icon-Small-40%402x.png" />
|
||||
<BundleResource Include="Resources\Icon-Small-40%403x.png" />
|
||||
<BundleResource Include="Resources\Icon-Small.png" />
|
||||
<BundleResource Include="Resources\Icon-Small%402x.png" />
|
||||
<BundleResource Include="Resources\Icon-Small%403x.png" />
|
||||
<InterfaceDefinition Include="Resources\LaunchScreen.storyboard" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.Practices.ServiceLocation, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Practices.Unity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Unity.4.0.1\lib\portable-net45+wp80+win8+wpa81+MonoAndroid10+MonoTouch10\Microsoft.Practices.Unity.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Maps, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.Maps.2.3.4.184-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Maps.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Maps.iOS, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.Maps.2.3.4.184-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Maps.iOS.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Platform.iOS, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.iOS" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MyTaxyCompany01\MyTaxyCompany01.csproj">
|
||||
<Project>{05059023-3f8b-4009-b5c5-f7ddcac28494}</Project>
|
||||
<Name>MyTaxyCompany01</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||
<Import Project="..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets'))" />
|
||||
</Target>
|
||||
</Project>
|
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("MyTaxyCompany01.iOS")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MyTaxyCompany01.iOS")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Default-568h@2x.png
Normal file
После Ширина: | Высота: | Размер: 8.7 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Default-Portrait.png
Normal file
После Ширина: | Высота: | Размер: 10 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Default-Portrait@2x.png
Normal file
После Ширина: | Высота: | Размер: 34 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Default.png
Normal file
После Ширина: | Высота: | Размер: 7.1 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Default@2x.png
Normal file
После Ширина: | Высота: | Размер: 8.2 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-60@2x.png
Normal file
После Ширина: | Высота: | Размер: 1.7 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-60@3x.png
Normal file
После Ширина: | Высота: | Размер: 21 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-76.png
Normal file
После Ширина: | Высота: | Размер: 1.2 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-76@2x.png
Normal file
После Ширина: | Высота: | Размер: 2.2 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-Small-40.png
Normal file
После Ширина: | Высота: | Размер: 729 B |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-Small-40@2x.png
Normal file
После Ширина: | Высота: | Размер: 1.2 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-Small-40@3x.png
Normal file
После Ширина: | Высота: | Размер: 12 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-Small.png
Normal file
После Ширина: | Высота: | Размер: 1.1 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-Small@2x.png
Normal file
После Ширина: | Высота: | Размер: 955 B |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/Resources/Icon-Small@3x.png
Normal file
После Ширина: | Высота: | Размер: 7.1 KiB |
|
@ -0,0 +1,39 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="X5k-f2-b5h">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
|
||||
</dependencies>
|
||||
<scenes>
|
||||
<!--View Controller-->
|
||||
<scene sceneID="gAE-YM-kbH">
|
||||
<objects>
|
||||
<viewController id="X5k-f2-b5h" sceneMemberID="viewController">
|
||||
<layoutGuides>
|
||||
<viewControllerLayoutGuide type="top" id="Y8P-hJ-Z43"/>
|
||||
<viewControllerLayoutGuide type="bottom" id="9ZL-r4-8FZ"/>
|
||||
</layoutGuides>
|
||||
<view key="view" contentMode="scaleToFill" id="yd7-JS-zBw">
|
||||
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" misplaced="YES" image="Icon-60.png" translatesAutoresizingMaskIntoConstraints="NO" id="23">
|
||||
<rect key="frame" x="270" y="270" width="60" height="60"/>
|
||||
<rect key="contentStretch" x="0.0" y="0.0" width="0.0" height="0.0"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" red="0.20392156862745098" green="0.59607843137254901" blue="0.85882352941176465" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="23" firstAttribute="centerY" secondItem="yd7-JS-zBw" secondAttribute="centerY" priority="1" id="39"/>
|
||||
<constraint firstItem="23" firstAttribute="centerX" secondItem="yd7-JS-zBw" secondAttribute="centerX" priority="1" id="41"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</viewController>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="XAI-xm-WK6" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||
</objects>
|
||||
<point key="canvasLocation" x="349" y="339"/>
|
||||
</scene>
|
||||
</scenes>
|
||||
<resources>
|
||||
<image name="Icon-60.png" width="180" height="180"/>
|
||||
</resources>
|
||||
</document>
|
После Ширина: | Высота: | Размер: 16 KiB |
Двоичные данные
src/MyTaxyCompany01/MyTaxyCompany01/MyTaxyCompany01.iOS/iTunesArtwork@2x
Normal file
После Ширина: | Высота: | Размер: 20 KiB |
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="CommonServiceLocator" version="1.3" targetFramework="xamarinios10" />
|
||||
<package id="Unity" version="4.0.1" targetFramework="xamarinios10" />
|
||||
<package id="Xamarin.Forms" version="2.3.4.184-pre1" targetFramework="xamarinios10" />
|
||||
<package id="Xamarin.Forms.Maps" version="2.3.4.184-pre1" targetFramework="xamarinios10" />
|
||||
</packages>
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Application xmlns="http://xamarin.com/schemas/2014/forms"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="MyTaxyCompany01.App">
|
||||
<Application.Resources>
|
||||
|
||||
<!-- Application resource dictionary -->
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
|
@ -0,0 +1,38 @@
|
|||
using MyTaxyCompany01.Services.Navigation;
|
||||
using MyTaxyCompany01.ViewModels.Base;
|
||||
using System.Threading.Tasks;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace MyTaxyCompany01
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
public App()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
InitNavigation();
|
||||
}
|
||||
|
||||
private Task InitNavigation()
|
||||
{
|
||||
var navigationService = ViewModelLocator.Instance.Resolve<INavigationService>();
|
||||
return navigationService.InitializeAsync();
|
||||
}
|
||||
|
||||
protected override void OnStart()
|
||||
{
|
||||
// Handle when your app starts
|
||||
}
|
||||
|
||||
protected override void OnSleep()
|
||||
{
|
||||
// Handle when your app sleeps
|
||||
}
|
||||
|
||||
protected override void OnResume()
|
||||
{
|
||||
// Handle when your app resumes
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace MyTaxyCompany01.Behaviors
|
||||
{
|
||||
public class BindableBehavior<T> : Behavior<T> where T : BindableObject
|
||||
{
|
||||
public T AssociatedObject { get; private set; }
|
||||
|
||||
protected override void OnAttachedTo(T visualElement)
|
||||
{
|
||||
base.OnAttachedTo(visualElement);
|
||||
|
||||
AssociatedObject = visualElement;
|
||||
|
||||
if (visualElement.BindingContext != null)
|
||||
BindingContext = visualElement.BindingContext;
|
||||
|
||||
visualElement.BindingContextChanged += OnBindingContextChanged;
|
||||
}
|
||||
|
||||
private void OnBindingContextChanged(object sender, EventArgs e)
|
||||
{
|
||||
OnBindingContextChanged();
|
||||
}
|
||||
|
||||
protected override void OnDetachingFrom(T view)
|
||||
{
|
||||
view.BindingContextChanged -= OnBindingContextChanged;
|
||||
}
|
||||
|
||||
protected override void OnBindingContextChanged()
|
||||
{
|
||||
base.OnBindingContextChanged();
|
||||
BindingContext = AssociatedObject.BindingContext;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
using MyTaxyCompany01.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Maps;
|
||||
|
||||
namespace MyTaxyCompany01.Behaviors
|
||||
{
|
||||
public class MapBehavior : BindableBehavior<Map>
|
||||
{
|
||||
private Map _map;
|
||||
|
||||
public static readonly BindableProperty ItemsSourceProperty =
|
||||
BindableProperty.CreateAttached("ItemsSource", typeof(IEnumerable<Customer>), typeof(MapBehavior),
|
||||
default(IEnumerable<Customer>), BindingMode.Default, null, OnItemsSourceChanged);
|
||||
|
||||
public IEnumerable<Customer> ItemsSource
|
||||
{
|
||||
get { return (IEnumerable<Customer>)GetValue(ItemsSourceProperty); }
|
||||
set { SetValue(ItemsSourceProperty, value); }
|
||||
}
|
||||
|
||||
private static void OnItemsSourceChanged(BindableObject view, object oldValue, object newValue)
|
||||
{
|
||||
var mapBehavior = view as MapBehavior;
|
||||
|
||||
if (mapBehavior != null)
|
||||
{
|
||||
mapBehavior.AddPins();
|
||||
mapBehavior.PositionMap();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void OnAttachedTo(Map bindable)
|
||||
{
|
||||
base.OnAttachedTo(bindable);
|
||||
|
||||
_map = bindable;
|
||||
}
|
||||
|
||||
protected override void OnDetachingFrom(Map bindable)
|
||||
{
|
||||
base.OnDetachingFrom(bindable);
|
||||
|
||||
_map = null;
|
||||
}
|
||||
|
||||
private void AddPins()
|
||||
{
|
||||
for (int i = _map.Pins.Count - 1; i >= 0; i--)
|
||||
{
|
||||
_map.Pins.RemoveAt(i);
|
||||
}
|
||||
|
||||
var pins = ItemsSource.Select(x =>
|
||||
{
|
||||
var pin = new Pin
|
||||
{
|
||||
Type = PinType.SearchResult,
|
||||
Position = new Position(x.Latitude, x.Longitude),
|
||||
Label = string.Format("{0}, {1}", x.Latitude, x.Longitude)
|
||||
};
|
||||
|
||||
return pin;
|
||||
}).ToArray();
|
||||
|
||||
foreach (var pin in pins)
|
||||
_map.Pins.Add(pin);
|
||||
}
|
||||
|
||||
private void PositionMap()
|
||||
{
|
||||
if (ItemsSource == null || !ItemsSource.Any()) return;
|
||||
|
||||
var centerPosition = new Position(ItemsSource.Average(x => x.Latitude), ItemsSource.Average(x => x.Longitude));
|
||||
|
||||
var distance = 0.5;
|
||||
|
||||
_map.MoveToRegion(MapSpan.FromCenterAndRadius(centerPosition, Distance.FromMiles(distance)));
|
||||
|
||||
Device.StartTimer(TimeSpan.FromMilliseconds(500), () =>
|
||||
{
|
||||
_map.MoveToRegion(MapSpan.FromCenterAndRadius(centerPosition, Distance.FromMiles(distance)));
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
[
|
||||
{
|
||||
"Id": 1,
|
||||
"Phone": "(555) XXX-XXXX",
|
||||
"Name": "Jhon Doe",
|
||||
"Title": "Jhon Doe",
|
||||
"Address": "Calle Dr. Miguel Ríos Sarmiento, 3, 41020 Sevilla, Spain",
|
||||
"Description": "Quick business trip to city center.",
|
||||
"UpdateDescription": "",
|
||||
"Latitude": 37.404566,
|
||||
"Longitude": -5.934433,
|
||||
"CustomerType": 1,
|
||||
"Taxis": [
|
||||
{
|
||||
"id": 3
|
||||
}
|
||||
],
|
||||
"CustomerCategory": 1
|
||||
},
|
||||
{
|
||||
"Id": 2,
|
||||
"Phone": "(555) XXX-XXXX",
|
||||
"Name": "Anna Doe",
|
||||
"Title": "Anna Doe",
|
||||
"Address": "Av. del Deporte, 33, 41020 Sevilla, Spain",
|
||||
"Description": "You need to go to the nearest hospital.",
|
||||
"UpdateDescription": "",
|
||||
"Latitude": 37.394635,
|
||||
"Longitude": -5.914357,
|
||||
"Taxis": [
|
||||
{
|
||||
"id": 3
|
||||
}
|
||||
],
|
||||
"CustomerCategory": 3
|
||||
}
|
||||
]
|
|
@ -0,0 +1,38 @@
|
|||
using MyTaxyCompany01.Models;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Reflection;
|
||||
|
||||
namespace MyTaxyCompany01.Data
|
||||
{
|
||||
public static class DataRepository
|
||||
{
|
||||
private static IList<Customer> _customerList;
|
||||
|
||||
public static IList<Customer> LoadCustomerData()
|
||||
{
|
||||
return _customerList ??
|
||||
(_customerList =
|
||||
LoadData<IList<Customer>>(GlobalSetting.CustomerJsonDataFile));
|
||||
}
|
||||
|
||||
private static T LoadData<T>(string dataFileName)
|
||||
{
|
||||
var assembly = typeof(DataRepository).GetTypeInfo().Assembly;
|
||||
string preparedDataFileName = string.Format("MyTaxyCompany01.{0}",
|
||||
dataFileName.Replace("/", "."));
|
||||
Stream stream = assembly.GetManifestResourceStream(preparedDataFileName);
|
||||
|
||||
if (stream == null)
|
||||
{
|
||||
return default(T);
|
||||
}
|
||||
|
||||
using (StreamReader sr = new StreamReader(stream))
|
||||
{
|
||||
return JsonConvert.DeserializeObject<T>(sr.ReadToEnd());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
namespace MyTaxyCompany01
|
||||
{
|
||||
public class GlobalSetting
|
||||
{
|
||||
public const string CustomerJsonDataFile = "Data/CustomerData.json";
|
||||
public const double UserLatitude = 37.405821;
|
||||
public const double UserLongitude = -5.93129;
|
||||
public const string BingMapsAPIKey = "40mgB3YEUPMAewdi02Hm~HM0JyrqUSuQqAz9WoBg0Iw~Ar-hXz2S6oaN-ZJRM3VzCSS1lpPhUlNmParkTwh6zuaG7AcSb9j2N0Oe2wRpr5qz";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
|
||||
namespace MyTaxyCompany01.Models
|
||||
{
|
||||
public class Customer
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Phone { get; set; }
|
||||
public string Address { get; set; }
|
||||
public string Description { get; set; }
|
||||
public double Longitude { get; set; }
|
||||
public double Latitude { get; set; }
|
||||
public DateTime? FullyAttendedTime { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,116 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{F220DA44-DFF6-4EF9-9B5C-6A5EBC5695DB}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>MyTaxyCompany01</RootNamespace>
|
||||
<AssemblyName>MyTaxyCompany01</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>Profile259</TargetFrameworkProfile>
|
||||
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Behaviors\BindableBehavior.cs" />
|
||||
<Compile Include="Behaviors\MapBehavior.cs" />
|
||||
<Compile Include="Data\DataRepository.cs" />
|
||||
<Compile Include="GlobalSetting.cs" />
|
||||
<Compile Include="Models\Customer.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Services\Customers\CustomersService.cs" />
|
||||
<Compile Include="Services\Customers\ICustomersService.cs" />
|
||||
<Compile Include="Services\Navigation\INavigationService.cs" />
|
||||
<Compile Include="Services\Navigation\NavigationService.cs" />
|
||||
<Compile Include="ViewModels\Base\ExtendedBindableObject.cs" />
|
||||
<Compile Include="ViewModels\Base\ViewModelBase.cs" />
|
||||
<Compile Include="ViewModels\Base\ViewModelLocator.cs" />
|
||||
<Compile Include="ViewModels\MainViewModel.cs" />
|
||||
<Compile Include="Views\MainView.xaml.cs">
|
||||
<DependentUpon>MainView.xaml</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="App.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Data\CustomerData.json">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</EmbeddedResource>
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.Practices.ServiceLocation, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Practices.Unity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Unity.4.0.1\lib\portable-net45+wp80+win8+wpa81+MonoAndroid10+MonoTouch10\Microsoft.Practices.Unity.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Newtonsoft.Json.9.0.2-beta2\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Core.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Maps, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.Maps.2.3.4.184-pre1\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10\Xamarin.Forms.Maps.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Platform.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\..\packages\Xamarin.Forms.2.3.4.184-pre1\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Xaml.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<EmbeddedResource Include="Views\MainView.xaml">
|
||||
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
|
||||
<Import Project="..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets" Condition="Exists('..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" />
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>Este proyecto hace referencia a los paquetes NuGet que faltan en este equipo. Use la restauración de paquetes NuGet para descargarlos. Para obtener más información, consulte http://go.microsoft.com/fwlink/?LinkID=322105. El archivo que falta es {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Xamarin.Forms.2.3.4.184-pre1\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.targets'))" />
|
||||
</Target>
|
||||
</Project>
|
|
@ -0,0 +1,30 @@
|
|||
using System.Resources;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("MyTaxyCompany01")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("MyTaxyCompany01")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: NeutralResourcesLanguage("en")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
@ -0,0 +1,17 @@
|
|||
using MyTaxyCompany01.Data;
|
||||
using MyTaxyCompany01.Models;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MyTaxyCompany01.Services.Customers
|
||||
{
|
||||
public class CustomersService : ICustomersService
|
||||
{
|
||||
public async Task<ObservableCollection<Customer>> GetCustomersAsync()
|
||||
{
|
||||
await Task.Delay(500);
|
||||
|
||||
return new ObservableCollection<Customer>(DataRepository.LoadCustomerData());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
using MyTaxyCompany01.Models;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MyTaxyCompany01.Services.Customers
|
||||
{
|
||||
public interface ICustomersService
|
||||
{
|
||||
Task<ObservableCollection<Customer>> GetCustomersAsync();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
using MyTaxyCompany01.ViewModels.Base;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MyTaxyCompany01.Services.Navigation
|
||||
{
|
||||
public interface INavigationService
|
||||
{
|
||||
Task InitializeAsync();
|
||||
|
||||
Task NavigateToAsync<TViewModel>() where TViewModel : ViewModelBase;
|
||||
|
||||
Task NavigateToAsync<TViewModel>(object parameter) where TViewModel : ViewModelBase;
|
||||
|
||||
Task NavigateToAsync(Type viewModelType);
|
||||
|
||||
Task NavigateToAsync(Type viewModelType, object parameter);
|
||||
|
||||
Task NavigateBackAsync();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,112 @@
|
|||
using MyTaxyCompany01.ViewModels;
|
||||
using MyTaxyCompany01.ViewModels.Base;
|
||||
using MyTaxyCompany01.Views;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace MyTaxyCompany01.Services.Navigation
|
||||
{
|
||||
public class NavigationService : INavigationService
|
||||
{
|
||||
protected readonly Dictionary<Type, Type> _mappings;
|
||||
|
||||
protected Application CurrentApplication
|
||||
{
|
||||
get
|
||||
{
|
||||
return Application.Current;
|
||||
}
|
||||
}
|
||||
|
||||
public NavigationService()
|
||||
{
|
||||
_mappings = new Dictionary<Type, Type>();
|
||||
|
||||
CreatePageViewModelMappings();
|
||||
}
|
||||
|
||||
public Task InitializeAsync()
|
||||
{
|
||||
return NavigateToAsync<MainViewModel>();
|
||||
}
|
||||
|
||||
public Task NavigateToAsync<TViewModel>() where TViewModel : ViewModelBase
|
||||
{
|
||||
return InternalNavigateToAsync(typeof(TViewModel), null);
|
||||
}
|
||||
|
||||
public Task NavigateToAsync<TViewModel>(object parameter) where TViewModel : ViewModelBase
|
||||
{
|
||||
return InternalNavigateToAsync(typeof(TViewModel), parameter);
|
||||
}
|
||||
|
||||
public Task NavigateToAsync(Type viewModelType)
|
||||
{
|
||||
return InternalNavigateToAsync(viewModelType, null);
|
||||
}
|
||||
|
||||
public Task NavigateToAsync(Type viewModelType, object parameter)
|
||||
{
|
||||
return InternalNavigateToAsync(viewModelType, parameter);
|
||||
}
|
||||
|
||||
public async Task NavigateBackAsync()
|
||||
{
|
||||
if (CurrentApplication.MainPage is MainView)
|
||||
{
|
||||
var mainPage = CurrentApplication.MainPage as MainView;
|
||||
await mainPage.Navigation.PopAsync();
|
||||
}
|
||||
else if (CurrentApplication.MainPage != null)
|
||||
{
|
||||
await CurrentApplication.MainPage.Navigation.PopAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected virtual async Task InternalNavigateToAsync(Type viewModelType, object parameter)
|
||||
{
|
||||
Page page = CreateAndBindPage(viewModelType, parameter);
|
||||
|
||||
if (page is MainView)
|
||||
{
|
||||
CurrentApplication.MainPage = page;
|
||||
}
|
||||
|
||||
await (page.BindingContext as ViewModelBase).InitializeAsync(parameter);
|
||||
}
|
||||
|
||||
protected Page CreateAndBindPage(Type viewModelType, object parameter)
|
||||
{
|
||||
Type pageType = GetPageTypeForViewModel(viewModelType);
|
||||
|
||||
if (pageType == null)
|
||||
{
|
||||
throw new Exception($"Mapping type for {viewModelType} is not a page");
|
||||
}
|
||||
|
||||
Page page = Activator.CreateInstance(pageType) as Page;
|
||||
ViewModelBase viewModel = ViewModelLocator.Instance.Resolve(viewModelType) as ViewModelBase;
|
||||
page.BindingContext = viewModel;
|
||||
|
||||
return page;
|
||||
}
|
||||
|
||||
protected Type GetPageTypeForViewModel(Type viewModelType)
|
||||
{
|
||||
if (!_mappings.ContainsKey(viewModelType))
|
||||
{
|
||||
throw new KeyNotFoundException($"No map for ${viewModelType} was found on navigation mappings");
|
||||
}
|
||||
|
||||
return _mappings[viewModelType];
|
||||
}
|
||||
|
||||
private void CreatePageViewModelMappings()
|
||||
{
|
||||
_mappings.Add(typeof(MainViewModel), typeof(MainView));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace MyTaxyCompany01.ViewModels.Base
|
||||
{
|
||||
public abstract class ExtendedBindableObject : BindableObject
|
||||
{
|
||||
public void RaisePropertyChanged<T>(Expression<Func<T>> property)
|
||||
{
|
||||
var name = GetMemberInfo(property).Name;
|
||||
OnPropertyChanged(name);
|
||||
}
|
||||
|
||||
private MemberInfo GetMemberInfo(Expression expression)
|
||||
{
|
||||
MemberExpression operand;
|
||||
LambdaExpression lambdaExpression = (LambdaExpression)expression;
|
||||
if (lambdaExpression.Body as UnaryExpression != null)
|
||||
{
|
||||
UnaryExpression body = (UnaryExpression)lambdaExpression.Body;
|
||||
operand = (MemberExpression)body.Operand;
|
||||
}
|
||||
else
|
||||
{
|
||||
operand = (MemberExpression)lambdaExpression.Body;
|
||||
}
|
||||
return operand.Member;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using MyTaxyCompany01.Services.Navigation;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MyTaxyCompany01.ViewModels.Base
|
||||
{
|
||||
public abstract class ViewModelBase : ExtendedBindableObject
|
||||
{
|
||||
protected readonly INavigationService NavigationService;
|
||||
|
||||
private bool _isBusy;
|
||||
|
||||
public bool IsBusy
|
||||
{
|
||||
get
|
||||
{
|
||||
return _isBusy;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_isBusy = value;
|
||||
RaisePropertyChanged(() => IsBusy);
|
||||
}
|
||||
}
|
||||
|
||||
public ViewModelBase()
|
||||
{
|
||||
NavigationService = ViewModelLocator.Instance.Resolve<INavigationService>();
|
||||
}
|
||||
|
||||
public virtual Task InitializeAsync(object navigationData)
|
||||
{
|
||||
return Task.FromResult(false);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
using Microsoft.Practices.Unity;
|
||||
using MyTaxyCompany01.Services.Customers;
|
||||
using MyTaxyCompany01.Services.Navigation;
|
||||
using System;
|
||||
|
||||
namespace MyTaxyCompany01.ViewModels.Base
|
||||
{
|
||||
public class ViewModelLocator
|
||||
{
|
||||
private readonly IUnityContainer _unityContainer;
|
||||
|
||||
private static readonly ViewModelLocator _instance = new ViewModelLocator();
|
||||
|
||||
public static ViewModelLocator Instance
|
||||
{
|
||||
get { return _instance; }
|
||||
}
|
||||
|
||||
protected ViewModelLocator()
|
||||
{
|
||||
_unityContainer = new UnityContainer();
|
||||
|
||||
// Services
|
||||
RegisterServices();
|
||||
|
||||
// View models
|
||||
_unityContainer.RegisterType<MainViewModel>();
|
||||
}
|
||||
|
||||
private void RegisterServices()
|
||||
{
|
||||
// Services
|
||||
_unityContainer.RegisterType<ICustomersService, CustomersService>();
|
||||
_unityContainer.RegisterType<INavigationService, NavigationService>();
|
||||
}
|
||||
|
||||
public T Resolve<T>()
|
||||
{
|
||||
return _unityContainer.Resolve<T>();
|
||||
}
|
||||
|
||||
public object Resolve(Type type)
|
||||
{
|
||||
return _unityContainer.Resolve(type);
|
||||
}
|
||||
|
||||
public void Register<T>(T instance)
|
||||
{
|
||||
_unityContainer.RegisterInstance<T>(instance);
|
||||
}
|
||||
|
||||
public void Register<TInterface, T>() where T : TInterface
|
||||
{
|
||||
_unityContainer.RegisterType<TInterface, T>();
|
||||
}
|
||||
|
||||
public void RegisterSingleton<TInterface, T>() where T : TInterface
|
||||
{
|
||||
_unityContainer.RegisterType<TInterface, T>(new ContainerControlledLifetimeManager());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
using MyTaxyCompany01.Models;
|
||||
using MyTaxyCompany01.Services.Customers;
|
||||
using MyTaxyCompany01.ViewModels.Base;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MyTaxyCompany01.ViewModels
|
||||
{
|
||||
public class MainViewModel : ViewModelBase
|
||||
{
|
||||
private ObservableCollection<Customer> _customers;
|
||||
|
||||
private ICustomersService _customersService;
|
||||
|
||||
public MainViewModel(ICustomersService customersService)
|
||||
{
|
||||
_customersService = customersService;
|
||||
}
|
||||
|
||||
public ObservableCollection<Customer> Customers
|
||||
{
|
||||
get { return _customers; }
|
||||
set
|
||||
{
|
||||
_customers = value;
|
||||
RaisePropertyChanged(() => Customers);
|
||||
}
|
||||
}
|
||||
|
||||
public override async Task InitializeAsync(object navigationData)
|
||||
{
|
||||
Customers = await _customersService.GetCustomersAsync();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
<?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="MyTaxyCompany01.Views.MainView"
|
||||
xmlns:maps="clr-namespace:Xamarin.Forms.Maps;assembly=Xamarin.Forms.Maps"
|
||||
xmlns:behaviors="clr-namespace:MyTaxyCompany01.Behaviors;assembly=MyTaxyCompany01">
|
||||
<AbsoluteLayout>
|
||||
<maps:Map
|
||||
AbsoluteLayout.LayoutFlags="All"
|
||||
AbsoluteLayout.LayoutBounds="0, 0, 1.0, 1.0"
|
||||
x:Name="MyMap">
|
||||
<maps:Map.Behaviors>
|
||||
<behaviors:MapBehavior
|
||||
ItemsSource="{Binding Customers}" />
|
||||
</maps:Map.Behaviors>
|
||||
</maps:Map>
|
||||
</AbsoluteLayout>
|
||||
</ContentPage>
|
|
@ -0,0 +1,48 @@
|
|||
using MyTaxyCompany01.Data;
|
||||
using MyTaxyCompany01.ViewModels;
|
||||
using MyTaxyCompany01.ViewModels.Base;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Maps;
|
||||
|
||||
namespace MyTaxyCompany01.Views
|
||||
{
|
||||
public partial class MainView : ContentPage
|
||||
{
|
||||
public MainView()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
var viewModel = ViewModelLocator.Instance.Resolve<MainViewModel>();
|
||||
BindingContext = viewModel;
|
||||
|
||||
/*
|
||||
AddPins();
|
||||
PositionMap();
|
||||
*/
|
||||
}
|
||||
|
||||
private void AddPins()
|
||||
{
|
||||
foreach (var customer in DataRepository.LoadCustomerData())
|
||||
{
|
||||
var pin = new Pin
|
||||
{
|
||||
Type = PinType.Place,
|
||||
Position = new Position(customer.Latitude, customer.Longitude),
|
||||
Label = customer.Name,
|
||||
Address = customer.Address
|
||||
};
|
||||
|
||||
MyMap.Pins.Add(pin);
|
||||
}
|
||||
}
|
||||
|
||||
private void PositionMap()
|
||||
{
|
||||
MyMap.MoveToRegion(
|
||||
MapSpan.FromCenterAndRadius(
|
||||
new Position(GlobalSetting.UserLatitude, GlobalSetting.UserLongitude),
|
||||
Distance.FromMiles(1)));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="CommonServiceLocator" version="1.3" targetFramework="portable45-net45+win8+wp8+wpa81" />
|
||||
<package id="Newtonsoft.Json" version="9.0.2-beta2" targetFramework="portable45-net45+win8+wp8+wpa81" />
|
||||
<package id="Unity" version="4.0.1" targetFramework="portable45-net45+win8+wp8+wpa81" />
|
||||
<package id="Xamarin.Forms" version="2.3.4.184-pre1" targetFramework="portable45-net45+win8+wp8+wpa81" />
|
||||
<package id="Xamarin.Forms.Maps" version="2.3.4.184-pre1" targetFramework="portable45-net45+win8+wp8+wpa81" />
|
||||
</packages>
|