diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-26 12:15:52 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-11-26 12:15:52 +0200 |
| commit | 0a8af16821cfbb52fe02881921695d378f6578d7 (patch) | |
| tree | a6c833776be9fe8cd5bf83d0a802c9a15cb60410 /Software | |
| parent | 4eff62d399ff3f3093f67185ac58b5d0a134e25e (diff) | |
| download | Tango-0a8af16821cfbb52fe02881921695d378f6578d7.tar.gz Tango-0a8af16821cfbb52fe02881921695d378f6578d7.zip | |
Implemented shortcut generator + post build events for all GUI utilities.
Diffstat (limited to 'Software')
27 files changed, 629 insertions, 2 deletions
diff --git a/Software/Visual_Studio/Tango.Synchronization/Tango.Synchronization.csproj b/Software/Visual_Studio/Tango.Synchronization/Tango.Synchronization.csproj index da8054956..b702c5335 100644 --- a/Software/Visual_Studio/Tango.Synchronization/Tango.Synchronization.csproj +++ b/Software/Visual_Studio/Tango.Synchronization/Tango.Synchronization.csproj @@ -18,7 +18,7 @@ <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> - <OutputPath>bin\Debug\</OutputPath> + <OutputPath>..\Build\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> diff --git a/Software/Visual_Studio/Tango.sln b/Software/Visual_Studio/Tango.sln index 8c446abff..eb0136588 100644 --- a/Software/Visual_Studio/Tango.sln +++ b/Software/Visual_Studio/Tango.sln @@ -1,7 +1,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26430.14 +VisualStudioVersion = 15.0.26430.16 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.Protobuf", "Tango.Protobuf\Tango.Protobuf.csproj", "{40073806-914E-4E78-97AB-FA9639308EBE}" EndProject @@ -53,6 +53,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.MachineService", "Web EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.Synchronization", "Tango.Synchronization\Tango.Synchronization.csproj", "{7ADA4E86-CAD7-4968-A210-3A8A9E5153AB}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.Synchronization.UI", "Utilities\Tango.Synchronization.UI\Tango.Synchronization.UI.csproj", "{80EB1A50-B587-4159-911F-2F3702376684}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tango.ShortcutGenerator.CLI", "Utilities\Tango.ShortcutGenerator.CLI\Tango.ShortcutGenerator.CLI.csproj", "{ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -265,6 +269,30 @@ Global {7ADA4E86-CAD7-4968-A210-3A8A9E5153AB}.Release|x64.Build.0 = Release|Any CPU {7ADA4E86-CAD7-4968-A210-3A8A9E5153AB}.Release|x86.ActiveCfg = Release|Any CPU {7ADA4E86-CAD7-4968-A210-3A8A9E5153AB}.Release|x86.Build.0 = Release|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Debug|Any CPU.Build.0 = Debug|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Debug|x64.ActiveCfg = Debug|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Debug|x64.Build.0 = Debug|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Debug|x86.ActiveCfg = Debug|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Debug|x86.Build.0 = Debug|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Release|Any CPU.ActiveCfg = Release|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Release|Any CPU.Build.0 = Release|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Release|x64.ActiveCfg = Release|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Release|x64.Build.0 = Release|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Release|x86.ActiveCfg = Release|Any CPU + {80EB1A50-B587-4159-911F-2F3702376684}.Release|x86.Build.0 = Release|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Debug|x64.ActiveCfg = Debug|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Debug|x64.Build.0 = Debug|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Debug|x86.ActiveCfg = Debug|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Debug|x86.Build.0 = Debug|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Release|Any CPU.Build.0 = Release|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Release|x64.ActiveCfg = Release|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Release|x64.Build.0 = Release|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Release|x86.ActiveCfg = Release|Any CPU + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -277,5 +305,7 @@ Global {35397DDA-DDC7-46BE-A802-3B722B6858E9} = {4443B71C-216E-4D4C-8D19-868F50803813} {37EE62DF-A988-45AF-BB30-DD3245164188} = {5F6BBAA8-EAD0-4B18-97E5-55B4F56DD760} {3F09B230-5AAC-4651-BA7A-19F3BDFCF701} = {59B2E8DA-2D5D-48FA-9A96-F53BDB7EF7A9} + {80EB1A50-B587-4159-911F-2F3702376684} = {5F6BBAA8-EAD0-4B18-97E5-55B4F56DD760} + {ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B} = {5F6BBAA8-EAD0-4B18-97E5-55B4F56DD760} EndGlobalSection EndGlobal diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj index 79e395584..6d1526b72 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/Tango.MachineEM.UI.csproj @@ -32,6 +32,9 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> + <PropertyGroup> + <ApplicationIcon>machine.ico</ApplicationIcon> + </PropertyGroup> <ItemGroup> <Reference Include="FontAwesome.WPF, Version=4.7.0.37774, Culture=neutral, PublicKeyToken=0758b07a11a4f466, processorArchitecture=MSIL"> <HintPath>..\..\packages\FontAwesome.WPF.4.7.0.9\lib\net40\FontAwesome.WPF.dll</HintPath> @@ -152,5 +155,11 @@ <Name>Tango.Transport</Name> </ProjectReference> </ItemGroup> + <ItemGroup> + <Resource Include="machine.ico" /> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <PostBuildEvent>$(TargetDir)linkgen.exe -s "$(TargetPath)" -d "$(TargetDir)Utilities\Machine Emulator.lnk"</PostBuildEvent> + </PropertyGroup> </Project>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/machine.ico b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/machine.ico Binary files differnew file mode 100644 index 000000000..85f9bcf9b --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/machine.ico diff --git a/Software/Visual_Studio/Utilities/Tango.MobileEM.UI/Tango.MobileEM.UI.csproj b/Software/Visual_Studio/Utilities/Tango.MobileEM.UI/Tango.MobileEM.UI.csproj index 9546deaed..0e13b522b 100644 --- a/Software/Visual_Studio/Utilities/Tango.MobileEM.UI/Tango.MobileEM.UI.csproj +++ b/Software/Visual_Studio/Utilities/Tango.MobileEM.UI/Tango.MobileEM.UI.csproj @@ -32,6 +32,9 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> + <PropertyGroup> + <ApplicationIcon>phone.ico</ApplicationIcon> + </PropertyGroup> <ItemGroup> <Reference Include="FontAwesome.WPF, Version=4.7.0.37774, Culture=neutral, PublicKeyToken=0758b07a11a4f466, processorArchitecture=MSIL"> <HintPath>..\..\packages\FontAwesome.WPF.4.7.0.9\lib\net40\FontAwesome.WPF.dll</HintPath> @@ -169,5 +172,11 @@ <Name>Tango.Transport</Name> </ProjectReference> </ItemGroup> + <ItemGroup> + <Resource Include="phone.ico" /> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <PostBuildEvent>$(TargetDir)linkgen.exe -s "$(TargetPath)" -d "$(TargetDir)Utilities\Mobile Emulator.lnk"</PostBuildEvent> + </PropertyGroup> </Project>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.MobileEM.UI/phone.ico b/Software/Visual_Studio/Utilities/Tango.MobileEM.UI/phone.ico Binary files differnew file mode 100644 index 000000000..524939f3b --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.MobileEM.UI/phone.ico diff --git a/Software/Visual_Studio/Utilities/Tango.Protobuf.UI/Tango.Protobuf.UI.csproj b/Software/Visual_Studio/Utilities/Tango.Protobuf.UI/Tango.Protobuf.UI.csproj index f85fe33ae..642039666 100644 --- a/Software/Visual_Studio/Utilities/Tango.Protobuf.UI/Tango.Protobuf.UI.csproj +++ b/Software/Visual_Studio/Utilities/Tango.Protobuf.UI/Tango.Protobuf.UI.csproj @@ -148,4 +148,7 @@ <Resource Include="proto.ico" /> </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <PostBuildEvent>$(TargetDir)linkgen.exe -s "$(TargetPath)" -d "$(TargetDir)Utilities\Proto Compiler GUI.lnk"</PostBuildEvent> + </PropertyGroup> </Project>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/App.config b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/App.config new file mode 100644 index 000000000..8e1564635 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/App.config @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + </startup> +</configuration>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Options.cs b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Options.cs new file mode 100644 index 000000000..e1b59d3c3 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Options.cs @@ -0,0 +1,26 @@ +using CommandLine; +using CommandLine.Text; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.ShortcutGenerator.CLI +{ + public class Options + { + [Option('s', Required = true, HelpText = "Source application file.")] + public String SourcePath { get; set; } + + [Option('d', Required = true, HelpText = "Target shortcut file.")] + public String TargetPath { get; set; } + + [HelpOption] + public string GetUsage() + { + return HelpText.AutoBuild(this, + (HelpText current) => HelpText.DefaultParsingErrorsHandler(this, current)); + } + } +} diff --git a/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Program.cs b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Program.cs new file mode 100644 index 000000000..9d1a4666b --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Program.cs @@ -0,0 +1,34 @@ +using IWshRuntimeLibrary; +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.ShortcutGenerator.CLI +{ + class Program + { + static void Main(string[] args) + { + var options = new Options(); + + if (CommandLine.Parser.Default.ParseArguments(args, options)) + { + Directory.CreateDirectory(Path.GetDirectoryName(options.TargetPath)); + + WshShell wsh = new WshShell(); + IWshShortcut shortcut = wsh.CreateShortcut(Path.GetFullPath(options.TargetPath)) as IWshShortcut; + shortcut.Arguments = ""; + shortcut.TargetPath = Path.GetFullPath(options.SourcePath); + shortcut.Description = FileVersionInfo.GetVersionInfo(shortcut.TargetPath).FileDescription; + shortcut.WorkingDirectory = Path.GetDirectoryName(shortcut.TargetPath); + //shortcut.IconLocation = "specify icon location"; + shortcut.Save(); + Console.WriteLine("Shortcut create: " + shortcut.TargetPath); + } + } + } +} diff --git a/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..d9073ce97 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Properties/AssemblyInfo.cs @@ -0,0 +1,6 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Tango - Executable shortcut generator utility")] +[assembly: ComVisible(false)]
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Tango.ShortcutGenerator.CLI.csproj b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Tango.ShortcutGenerator.CLI.csproj new file mode 100644 index 000000000..0e95fe3f2 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/Tango.ShortcutGenerator.CLI.csproj @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="15.0" 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)' == '' ">AnyCPU</Platform> + <ProjectGuid>{ADDEEDAF-B45C-4681-8FB7-1C0A0DC63B4B}</ProjectGuid> + <OutputType>Exe</OutputType> + <RootNamespace>Tango.ShortcutGenerator.CLI</RootNamespace> + <AssemblyName>linkgen</AssemblyName> + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\..\Build\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <ItemGroup> + <Reference Include="CommandLine, Version=1.9.71.2, Culture=neutral, PublicKeyToken=de6f01bd326f8c32, processorArchitecture=MSIL"> + <HintPath>..\..\packages\CommandLineParser.1.9.71\lib\net45\CommandLine.dll</HintPath> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Data" /> + <Reference Include="System.Net.Http" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="..\..\Versioning\GlobalVersionInfo.cs"> + <Link>GlobalVersionInfo.cs</Link> + </Compile> + <Compile Include="Options.cs" /> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <None Include="App.config" /> + <None Include="packages.config" /> + </ItemGroup> + <ItemGroup> + <COMReference Include="IWshRuntimeLibrary"> + <Guid>{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}</Guid> + <VersionMajor>1</VersionMajor> + <VersionMinor>0</VersionMinor> + <Lcid>0</Lcid> + <WrapperTool>tlbimp</WrapperTool> + <Isolated>False</Isolated> + <EmbedInteropTypes>True</EmbedInteropTypes> + </COMReference> + <COMReference Include="Shell32"> + <Guid>{50A7E9B0-70EF-11D1-B75A-00A0C90564FE}</Guid> + <VersionMajor>1</VersionMajor> + <VersionMinor>0</VersionMinor> + <Lcid>0</Lcid> + <WrapperTool>tlbimp</WrapperTool> + <Isolated>False</Isolated> + <EmbedInteropTypes>True</EmbedInteropTypes> + </COMReference> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> +</Project>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/packages.config b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/packages.config new file mode 100644 index 000000000..0d9f59112 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.ShortcutGenerator.CLI/packages.config @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<packages> + <package id="CommandLineParser" version="1.9.71" targetFramework="net45" /> +</packages>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.config b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.config new file mode 100644 index 000000000..8e1564635 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.config @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" ?> +<configuration> + <startup> + <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> + </startup> +</configuration>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.xaml b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.xaml new file mode 100644 index 000000000..19bd64b04 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.xaml @@ -0,0 +1,9 @@ +<Application x:Class="Tango.Synchronization.UI.App" + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:local="clr-namespace:Tango.Synchronization.UI" + StartupUri="MainWindow.xaml"> + <Application.Resources> + + </Application.Resources> +</Application> diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.xaml.cs b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.xaml.cs new file mode 100644 index 000000000..83008eebb --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/App.xaml.cs @@ -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 Tango.Synchronization.UI +{ + /// <summary> + /// Interaction logic for App.xaml + /// </summary> + public partial class App : Application + { + } +} diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/MainWindow.xaml b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/MainWindow.xaml new file mode 100644 index 000000000..c52dbc88b --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/MainWindow.xaml @@ -0,0 +1,12 @@ +<Window x:Class="Tango.Synchronization.UI.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:Tango.Synchronization.UI" + mc:Ignorable="d" + Title="MainWindow" Height="350" Width="525"> + <Grid> + + </Grid> +</Window> diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/MainWindow.xaml.cs b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/MainWindow.xaml.cs new file mode 100644 index 000000000..cf4ebe4fa --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/MainWindow.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Tango.Synchronization.UI +{ + /// <summary> + /// Interaction logic for MainWindow.xaml + /// </summary> + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/AssemblyInfo.cs b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..397147372 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/AssemblyInfo.cs @@ -0,0 +1,6 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Tango - DataBase Synchronization Utility")] +[assembly: ComVisible(false)]
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Resources.Designer.cs b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Resources.Designer.cs new file mode 100644 index 000000000..6f93db676 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace Tango.Synchronization.UI.Properties +{ + + + /// <summary> + /// A strongly-typed resource class, for looking up localized strings, etc. + /// </summary> + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// <summary> + /// Returns the cached ResourceManager instance used by this class. + /// </summary> + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tango.Synchronization.UI.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// <summary> + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// </summary> + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Resources.resx b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Resources.resx new file mode 100644 index 000000000..af7dbebba --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Resources.resx @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Settings.Designer.cs b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Settings.Designer.cs new file mode 100644 index 000000000..c55476c5d --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// <auto-generated> +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// </auto-generated> +//------------------------------------------------------------------------------ + +namespace Tango.Synchronization.UI.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Settings.settings b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Settings.settings new file mode 100644 index 000000000..033d7a5e9 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Properties/Settings.settings @@ -0,0 +1,7 @@ +<?xml version='1.0' encoding='utf-8'?> +<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)"> + <Profiles> + <Profile Name="(Default)" /> + </Profiles> + <Settings /> +</SettingsFile>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Tango.Synchronization.UI.csproj b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Tango.Synchronization.UI.csproj new file mode 100644 index 000000000..fa9da15f8 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/Tango.Synchronization.UI.csproj @@ -0,0 +1,109 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="15.0" 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)' == '' ">AnyCPU</Platform> + <ProjectGuid>{80EB1A50-B587-4159-911F-2F3702376684}</ProjectGuid> + <OutputType>WinExe</OutputType> + <RootNamespace>Tango.Synchronization.UI</RootNamespace> + <AssemblyName>Tango.Synchronization.UI</AssemblyName> + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugSymbols>true</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>..\..\Build\Debug\</OutputPath> + <DefineConstants>DEBUG;TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <PlatformTarget>AnyCPU</PlatformTarget> + <DebugType>pdbonly</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants>TRACE</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + </PropertyGroup> + <PropertyGroup> + <ApplicationIcon>server.ico</ApplicationIcon> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Core" /> + <Reference Include="System.Xml.Linq" /> + <Reference Include="System.Data.DataSetExtensions" /> + <Reference Include="System.Net.Http" /> + <Reference Include="System.Xaml"> + <RequiredTargetFramework>4.0</RequiredTargetFramework> + </Reference> + <Reference Include="WindowsBase" /> + <Reference Include="PresentationCore" /> + <Reference Include="PresentationFramework" /> + </ItemGroup> + <ItemGroup> + <ApplicationDefinition Include="App.xaml"> + <Generator>MSBuild:Compile</Generator> + <SubType>Designer</SubType> + </ApplicationDefinition> + <Page Include="MainWindow.xaml"> + <Generator>MSBuild:Compile</Generator> + <SubType>Designer</SubType> + </Page> + <Compile Include="..\..\Versioning\GlobalVersionInfo.cs"> + <Link>GlobalVersionInfo.cs</Link> + </Compile> + <Compile Include="App.xaml.cs"> + <DependentUpon>App.xaml</DependentUpon> + <SubType>Code</SubType> + </Compile> + <Compile Include="MainWindow.xaml.cs"> + <DependentUpon>MainWindow.xaml</DependentUpon> + <SubType>Code</SubType> + </Compile> + </ItemGroup> + <ItemGroup> + <Compile Include="Properties\AssemblyInfo.cs"> + <SubType> + </SubType> + </Compile> + <Compile Include="Properties\Resources.Designer.cs"> + <AutoGen>True</AutoGen> + <DesignTime>True</DesignTime> + <DependentUpon>Resources.resx</DependentUpon> + </Compile> + <Compile Include="Properties\Settings.Designer.cs"> + <AutoGen>True</AutoGen> + <DependentUpon>Settings.settings</DependentUpon> + <DesignTimeSharedInput>True</DesignTimeSharedInput> + </Compile> + <EmbeddedResource Include="Properties\Resources.resx"> + <Generator>ResXFileCodeGenerator</Generator> + <LastGenOutput>Resources.Designer.cs</LastGenOutput> + </EmbeddedResource> + <None Include="Properties\Settings.settings"> + <Generator>SettingsSingleFileGenerator</Generator> + <LastGenOutput>Settings.Designer.cs</LastGenOutput> + </None> + </ItemGroup> + <ItemGroup> + <None Include="App.config" /> + </ItemGroup> + <ItemGroup> + <Resource Include="server.ico" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <PostBuildEvent>$(TargetDir)linkgen.exe -s "$(TargetPath)" -d "$(TargetDir)Utilities\DB Sync.lnk"</PostBuildEvent> + </PropertyGroup> +</Project>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/server.ico b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/server.ico Binary files differnew file mode 100644 index 000000000..be3efb0e1 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.Synchronization.UI/server.ico diff --git a/Software/Visual_Studio/Utilities/Tango.TransportRouter.UI/Tango.TransportRouter.UI.csproj b/Software/Visual_Studio/Utilities/Tango.TransportRouter.UI/Tango.TransportRouter.UI.csproj index d05260a72..ad33ce68f 100644 --- a/Software/Visual_Studio/Utilities/Tango.TransportRouter.UI/Tango.TransportRouter.UI.csproj +++ b/Software/Visual_Studio/Utilities/Tango.TransportRouter.UI/Tango.TransportRouter.UI.csproj @@ -32,6 +32,9 @@ <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> + <PropertyGroup> + <ApplicationIcon>router.ico</ApplicationIcon> + </PropertyGroup> <ItemGroup> <Reference Include="FontAwesome.WPF, Version=4.7.0.37774, Culture=neutral, PublicKeyToken=0758b07a11a4f466, processorArchitecture=MSIL"> <HintPath>..\..\packages\FontAwesome.WPF.4.7.0.9\lib\net40\FontAwesome.WPF.dll</HintPath> @@ -135,5 +138,11 @@ <ItemGroup> <Resource Include="Images\router.png" /> </ItemGroup> + <ItemGroup> + <Resource Include="router.ico" /> + </ItemGroup> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <PropertyGroup> + <PostBuildEvent>$(TargetDir)linkgen.exe -s "$(TargetPath)" -d "$(TargetDir)Utilities\Transport Router.lnk"</PostBuildEvent> + </PropertyGroup> </Project>
\ No newline at end of file diff --git a/Software/Visual_Studio/Utilities/Tango.TransportRouter.UI/router.ico b/Software/Visual_Studio/Utilities/Tango.TransportRouter.UI/router.ico Binary files differnew file mode 100644 index 000000000..246dfc639 --- /dev/null +++ b/Software/Visual_Studio/Utilities/Tango.TransportRouter.UI/router.ico |
