From b3fa49fd1d9f74204bbd5a74a007e13c82e4110e Mon Sep 17 00:00:00 2001 From: ulf hammarqvist Date: Thu, 19 Feb 2015 18:28:36 +0100 Subject: [PATCH] Added ExeFile (wpf) mocks with random color and window title --- preview toy.csproj => EVE-o Preview.csproj | 380 +++++++++--------- ...y.csproj.user => EVE-o Preview.csproj.user | 30 +- ExeFile/.gitignore | 3 + ExeFile/.hgignore | 3 + ExeFile/App.config | 6 + ExeFile/App.xaml | 8 + ExeFile/App.xaml.cs | 17 + ExeFile/ExeFile.csproj | 104 +++++ ExeFile/MainWindow.xaml | 10 + ExeFile/MainWindow.xaml.cs | 37 ++ ExeFile/Properties/AssemblyInfo.cs | 55 +++ ExeFile/Properties/Resources.Designer.cs | 71 ++++ ExeFile/Properties/Resources.resx | 117 ++++++ ExeFile/Properties/Settings.Designer.cs | 30 ++ ExeFile/Properties/Settings.settings | 7 + preview toy.sln | 12 +- 16 files changed, 683 insertions(+), 207 deletions(-) rename preview toy.csproj => EVE-o Preview.csproj (97%) rename preview toy.csproj.user => EVE-o Preview.csproj.user (97%) create mode 100644 ExeFile/.gitignore create mode 100644 ExeFile/.hgignore create mode 100644 ExeFile/App.config create mode 100644 ExeFile/App.xaml create mode 100644 ExeFile/App.xaml.cs create mode 100644 ExeFile/ExeFile.csproj create mode 100644 ExeFile/MainWindow.xaml create mode 100644 ExeFile/MainWindow.xaml.cs create mode 100644 ExeFile/Properties/AssemblyInfo.cs create mode 100644 ExeFile/Properties/Resources.Designer.cs create mode 100644 ExeFile/Properties/Resources.resx create mode 100644 ExeFile/Properties/Settings.Designer.cs create mode 100644 ExeFile/Properties/Settings.settings diff --git a/preview toy.csproj b/EVE-o Preview.csproj similarity index 97% rename from preview toy.csproj rename to EVE-o Preview.csproj index c6cbcc1..a130a19 100644 --- a/preview toy.csproj +++ b/EVE-o Preview.csproj @@ -1,191 +1,191 @@ - - - - Debug - AnyCPU - 8.0.50727 - 2.0 - {6CA62DF3-8589-484C-8BC8-F763CA66BBB1} - WinExe - Properties - PreviewToy - eve-o preview - v4.5 - - - 2.0 - - false - - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.18.2.0 - false - true - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - false - - - icon.ico - - - PreviewToy.Program - - - 4B29FD125BFAD24FF900FC81CCE0B0AD37464FDB - - - preview toy_TemporaryKey.pfx - - - true - - - false - - - - LocalIntranet - - - - - - true - - - - - - - - - - - - - - - - - Form - - - PreviewHandler.cs - - - Form - - - PreviewOverlay.cs - - - - - Designer - PreviewHandler.cs - - - PreviewOverlay.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - Designer - Preview.cs - - - True - Resources.resx - True - - - Designer - - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - Form - - - Preview.cs - - - - - - False - Microsoft .NET Framework 4 %28x86 and x64%29 - true - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - false - - - False - Windows Installer 3.1 - true - - - - - - - - - - + + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {6CA62DF3-8589-484C-8BC8-F763CA66BBB1} + WinExe + Properties + PreviewToy + eve-o preview + v4.5 + + + 2.0 + + false + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.18.2.0 + false + true + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + false + false + + + icon.ico + + + PreviewToy.Program + + + 4B29FD125BFAD24FF900FC81CCE0B0AD37464FDB + + + preview toy_TemporaryKey.pfx + + + true + + + false + + + + LocalIntranet + + + + + + true + + + + + + + + + + + + + + + + + Form + + + PreviewHandler.cs + + + Form + + + PreviewOverlay.cs + + + + + Designer + PreviewHandler.cs + + + PreviewOverlay.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + Designer + Preview.cs + + + True + Resources.resx + True + + + Designer + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + Form + + + Preview.cs + + + + + + False + Microsoft .NET Framework 4 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 Client Profile + false + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 3.1 + true + + + + + + + + + + \ No newline at end of file diff --git a/preview toy.csproj.user b/EVE-o Preview.csproj.user similarity index 97% rename from preview toy.csproj.user rename to EVE-o Preview.csproj.user index 9c62ad0..43ea7bc 100644 --- a/preview toy.csproj.user +++ b/EVE-o Preview.csproj.user @@ -1,16 +1,16 @@ - - - - publish\ - - - - - - en-US - false - - - false - + + + + publish\ + + + + + + en-US + false + + + false + \ No newline at end of file diff --git a/ExeFile/.gitignore b/ExeFile/.gitignore new file mode 100644 index 0000000..a6ff838 --- /dev/null +++ b/ExeFile/.gitignore @@ -0,0 +1,3 @@ +bin/* +obj/* +*.suo diff --git a/ExeFile/.hgignore b/ExeFile/.hgignore new file mode 100644 index 0000000..59bc062 --- /dev/null +++ b/ExeFile/.hgignore @@ -0,0 +1,3 @@ +syntax: glob +bin/* +obj/* diff --git a/ExeFile/App.config b/ExeFile/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/ExeFile/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ExeFile/App.xaml b/ExeFile/App.xaml new file mode 100644 index 0000000..d27e1f5 --- /dev/null +++ b/ExeFile/App.xaml @@ -0,0 +1,8 @@ + + + + + diff --git a/ExeFile/App.xaml.cs b/ExeFile/App.xaml.cs new file mode 100644 index 0000000..d0cd6a4 --- /dev/null +++ b/ExeFile/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 ExeFile +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/ExeFile/ExeFile.csproj b/ExeFile/ExeFile.csproj new file mode 100644 index 0000000..241071d --- /dev/null +++ b/ExeFile/ExeFile.csproj @@ -0,0 +1,104 @@ + + + + + Debug + AnyCPU + {BE2C3A13-CC19-4525-895F-381DD71C5833} + WinExe + Properties + ExeFile + ExeFile + v4.5 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + App.xaml + Code + + + MainWindow.xaml + Code + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + + + + + \ No newline at end of file diff --git a/ExeFile/MainWindow.xaml b/ExeFile/MainWindow.xaml new file mode 100644 index 0000000..10a1f9b --- /dev/null +++ b/ExeFile/MainWindow.xaml @@ -0,0 +1,10 @@ + + + + + + + diff --git a/ExeFile/MainWindow.xaml.cs b/ExeFile/MainWindow.xaml.cs new file mode 100644 index 0000000..aff17db --- /dev/null +++ b/ExeFile/MainWindow.xaml.cs @@ -0,0 +1,37 @@ +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 ExeFile +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + Random random = new Random(); + this.Title += random.Next().ToString("X"); + this.grid.Background = new SolidColorBrush( + Color.FromArgb((byte)255, + (byte)random.Next(0, 255), + (byte)random.Next(0, 255), + (byte)random.Next(0, 255) + ) + ); + } + } +} diff --git a/ExeFile/Properties/AssemblyInfo.cs b/ExeFile/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9ffcdf9 --- /dev/null +++ b/ExeFile/Properties/AssemblyInfo.cs @@ -0,0 +1,55 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// 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("ExeFile")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ExeFile")] +[assembly: AssemblyCopyright("Copyright © 2015")] +[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)] + +//In order to begin building localizable applications, set +//CultureYouAreCodingWith in your .csproj file +//inside a . For example, if you are using US english +//in your source files, set the to en-US. Then uncomment +//the NeutralResourceLanguage attribute below. Update the "en-US" in +//the line below to match the UICulture setting in the project file. + +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] + + +[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) +)] + + +// 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")] diff --git a/ExeFile/Properties/Resources.Designer.cs b/ExeFile/Properties/Resources.Designer.cs new file mode 100644 index 0000000..7453b44 --- /dev/null +++ b/ExeFile/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.18444 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ExeFile.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // 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() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [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("ExeFile.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [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/ExeFile/Properties/Resources.resx b/ExeFile/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/ExeFile/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ExeFile/Properties/Settings.Designer.cs b/ExeFile/Properties/Settings.Designer.cs new file mode 100644 index 0000000..fbbc5ec --- /dev/null +++ b/ExeFile/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.18444 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace ExeFile.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/ExeFile/Properties/Settings.settings b/ExeFile/Properties/Settings.settings new file mode 100644 index 0000000..033d7a5 --- /dev/null +++ b/ExeFile/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/preview toy.sln b/preview toy.sln index 90d04af..3ac7e1f 100644 --- a/preview toy.sln +++ b/preview toy.sln @@ -1,7 +1,11 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Express 2012 for Windows Desktop -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "preview toy", "preview toy.csproj", "{6CA62DF3-8589-484C-8BC8-F763CA66BBB1}" +# Visual Studio 2013 +VisualStudioVersion = 12.0.31101.0 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EVE-o Preview", "EVE-o Preview.csproj", "{6CA62DF3-8589-484C-8BC8-F763CA66BBB1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExeFile", "ExeFile\ExeFile.csproj", "{BE2C3A13-CC19-4525-895F-381DD71C5833}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -13,6 +17,10 @@ Global {6CA62DF3-8589-484C-8BC8-F763CA66BBB1}.Debug|Any CPU.Build.0 = Debug|Any CPU {6CA62DF3-8589-484C-8BC8-F763CA66BBB1}.Release|Any CPU.ActiveCfg = Release|Any CPU {6CA62DF3-8589-484C-8BC8-F763CA66BBB1}.Release|Any CPU.Build.0 = Release|Any CPU + {BE2C3A13-CC19-4525-895F-381DD71C5833}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BE2C3A13-CC19-4525-895F-381DD71C5833}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BE2C3A13-CC19-4525-895F-381DD71C5833}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BE2C3A13-CC19-4525-895F-381DD71C5833}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE