Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes #152

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions GoogleMapsApi.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31808.319
# Visual Studio Version 16
VisualStudioVersion = 16.0.31129.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GoogleMapsApi.Test", "GoogleMapsApi.Test\GoogleMapsApi.Test.csproj", "{AD9AD8E9-0E2C-470E-9004-373679F9D954}"
EndProject
Expand All @@ -17,6 +17,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "artifacts", "artifacts", "{
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GoogleMapsApi", "GoogleMapsApi\GoogleMapsApi.csproj", "{61E9FC82-47B0-43C3-8749-95D3A9967060}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GoogleMapsWPF", "GoogleMapsWPF\GoogleMapsWPF.csproj", "{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -50,6 +52,18 @@ Global
{61E9FC82-47B0-43C3-8749-95D3A9967060}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{61E9FC82-47B0-43C3-8749-95D3A9967060}.Release|x86.ActiveCfg = Release|Any CPU
{61E9FC82-47B0-43C3-8749-95D3A9967060}.Release|x86.Build.0 = Release|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Debug|x86.ActiveCfg = Debug|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Debug|x86.Build.0 = Debug|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Release|Any CPU.Build.0 = Release|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Release|x86.ActiveCfg = Release|Any CPU
{F81C2FF9-8C3F-4654-ADE1-C93EFA03CB43}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
4 changes: 4 additions & 0 deletions GoogleMapsApi/GoogleMapsApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@
<PackageReference Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>

<ItemGroup>
<Folder Include="Entities\Roads\" />
</ItemGroup>

</Project>
16 changes: 16 additions & 0 deletions GoogleMapsWPF/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Application x:Class="GoogleMapsWPF.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:GoogleMapsWPF"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Light.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Primary/MaterialDesignColor.BlueGrey.xaml" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Indigo.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions GoogleMapsWPF/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace GoogleMapsWPF
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
10 changes: 10 additions & 0 deletions GoogleMapsWPF/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
23 changes: 23 additions & 0 deletions GoogleMapsWPF/GoogleMapsWPF.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<UseWPF>true</UseWPF>
</PropertyGroup>

<ItemGroup>
<None Remove="google_maps_new_logo_icon_159147.png" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="GoogleMapsApi" Version="1.2.0" />
<PackageReference Include="MaterialDesignThemes" Version="4.5.0" />
<PackageReference Include="System.Drawing.Common" Version="6.0.0" />
</ItemGroup>

<ItemGroup>
<Resource Include="google_maps_new_logo_icon_159147.png" />
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions GoogleMapsWPF/GoogleMapsWPF.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31129.286
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GoogleMapsWPF", "GoogleMapsWPF.csproj", "{2841EEDA-D859-46DB-B2C4-6827D09775CB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{2841EEDA-D859-46DB-B2C4-6827D09775CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2841EEDA-D859-46DB-B2C4-6827D09775CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2841EEDA-D859-46DB-B2C4-6827D09775CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2841EEDA-D859-46DB-B2C4-6827D09775CB}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F4B6628F-98BB-409C-A09C-9489B1479D25}
EndGlobalSection
EndGlobal
88 changes: 88 additions & 0 deletions GoogleMapsWPF/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<Window x:Class="GoogleMapsWPF.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:GoogleMapsWPF"
mc:Ignorable="d"
Title="Google Maps Routes"
Height="450"
Width="800"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
TextElement.FontWeight="Regular"
TextElement.FontSize="13"
TextOptions.TextFormattingMode="Ideal"
TextOptions.TextRenderingMode="Auto"
Background="{DynamicResource MaterialDesignPaper}"
FontFamily="{DynamicResource MaterialDesignFont}"
Icon="/google_maps_new_logo_icon_159147.png">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Name="image"
Grid.Column="1"
Stretch="Uniform" />
<ScrollViewer VerticalScrollBarVisibility="Auto">
<StackPanel HorizontalAlignment="Left"
VerticalAlignment="Stretch"
Background="White"
Width="Auto"
Height="Auto"
Grid.Column="0">
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Center">
<StackPanel Name="destinations"
Width="200">
<TextBox materialDesign:HintAssist.Hint="Пункт відправлення"
Name="origin"
Padding="10"
Margin="5" />
<TextBox materialDesign:HintAssist.Hint="Пункт призначення"
Name="destination"
Padding="10"
Margin="5 5 5 0" />
</StackPanel>
<StackPanel VerticalAlignment="Center"
Margin="5">
<materialDesign:PackIcon Kind="SwapVertical"
Name="swap"
Cursor="Hand"
MouseLeftButtonUp="swap_Click" />
</StackPanel>
</StackPanel>
<StackPanel Orientation="Horizontal"
Margin="0 10"
HorizontalAlignment="Center"
Cursor="Hand"
Name="addDestination"
MouseLeftButtonUp="addDestination_Click">
<materialDesign:PackIcon Kind="PlusCircleOutline"
VerticalAlignment="Center" />
<TextBlock Text="Додати пункт призначення"
Margin="5" />
</StackPanel>
<ListBox Style="{StaticResource MaterialDesignChoiceChipAccentOutlineListBox}"
x:Name="RadioButtonGroup"
HorizontalAlignment="Center"
Margin="10">
<ListBoxItem IsSelected="True">
<materialDesign:PackIcon Kind="Car" />
</ListBoxItem>
<ListBoxItem>
<materialDesign:PackIcon Kind="Walk" />
</ListBoxItem>
<ListBoxItem>
<materialDesign:PackIcon Kind="Bicycle" />
</ListBoxItem>
</ListBox>
<Button Content="Пошук"
Name="search"
Margin="10 0"
Click="search_Click" />
</StackPanel>
</ScrollViewer>
</Grid>
</Window>
Loading