diff --git a/GlennGUI/GlennGUI/GlennGUI.csproj b/GlennGUI/GlennGUI/GlennGUI.csproj index 43f49f7..96ff8f9 100644 --- a/GlennGUI/GlennGUI/GlennGUI.csproj +++ b/GlennGUI/GlennGUI/GlennGUI.csproj @@ -18,6 +18,10 @@ ResXFileCodeGenerator Resources.Designer.cs + + ResXFileCodeGenerator + Resources.Designer.cs + @@ -26,6 +30,11 @@ True Resources.resx + + True + True + Resources.resx + \ No newline at end of file diff --git a/GlennGUI/GlennGUI/MainForm.cs b/GlennGUI/GlennGUI/MainForm.cs index 3135e61..7954854 100644 --- a/GlennGUI/GlennGUI/MainForm.cs +++ b/GlennGUI/GlennGUI/MainForm.cs @@ -34,7 +34,8 @@ public partial class MainForm : Form { Title = $"Glenn - v{Core.Version}"; MinimumSize = new Size(260, 280); - + + Icon = new Icon(1f, new Bitmap(Resources.applicationIcon)); var mainLayout = new DynamicLayout() {Padding = 10}; mainLayout.BeginVertical(); diff --git a/GlennGUI/GlennGUI/Resources.Designer.cs b/GlennGUI/GlennGUI/Resources.Designer.cs new file mode 100644 index 0000000..705798a --- /dev/null +++ b/GlennGUI/GlennGUI/Resources.Designer.cs @@ -0,0 +1,58 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace GlennGUI { + using System; + + + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Resources { + + private static System.Resources.ResourceManager resourceMan; + + private static System.Globalization.CultureInfo resourceCulture; + + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Resources.ResourceManager ResourceManager { + get { + if (object.Equals(null, resourceMan)) { + System.Resources.ResourceManager temp = new System.Resources.ResourceManager("GlennGui.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + internal static System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized resource of type System.Byte[]. + /// + public static byte[] applicationIcon { + get { + object obj = ResourceManager.GetObject("applicationIcon", resourceCulture); + return ((byte[])(obj)); + } + } + } +} \ No newline at end of file diff --git a/GlennGUI/GlennGUI/Resources.resx b/GlennGUI/GlennGUI/Resources.resx new file mode 100644 index 0000000..2d8d7e3 --- /dev/null +++ b/GlennGUI/GlennGUI/Resources.resx @@ -0,0 +1,24 @@ + + + + + + + + + + text/microsoft-resx + + + 1.3 + + + 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 + + + Resources\applicationIcon.ico;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/GlennGUI/GlennGUI/applicationIcon.ico b/GlennGUI/GlennGUI/Resources/applicationIcon.ico similarity index 100% rename from GlennGUI/GlennGUI/applicationIcon.ico rename to GlennGUI/GlennGUI/Resources/applicationIcon.ico