From c76366d210dc6809282f6d2e20d9e4f08ba10daf Mon Sep 17 00:00:00 2001 From: Evan Langlais Date: Fri, 3 Feb 2017 12:37:27 -0500 Subject: [PATCH] Added metrouiforms to nuget package manager and implemented basic form. --- Enigma/Enigma.csproj | 16 ++++++ Enigma/Form1.Designer.cs | 13 ++++- Enigma/Form1.cs | 8 ++- Enigma/Form1.resx | 120 +++++++++++++++++++++++++++++++++++++++ Enigma/packages.config | 4 ++ 5 files changed, 158 insertions(+), 3 deletions(-) create mode 100644 Enigma/Form1.resx create mode 100644 Enigma/packages.config diff --git a/Enigma/Enigma.csproj b/Enigma/Enigma.csproj index f9ba95d..a787220 100644 --- a/Enigma/Enigma.csproj +++ b/Enigma/Enigma.csproj @@ -33,6 +33,18 @@ 4 + + ..\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.dll + True + + + ..\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.Design.dll + True + + + ..\packages\MetroModernUI.1.4.0.0\lib\net\MetroFramework.Fonts.dll + True + @@ -54,6 +66,9 @@ + + Form1.cs + ResXFileCodeGenerator Resources.Designer.cs @@ -63,6 +78,7 @@ True Resources.resx + SettingsSingleFileGenerator Settings.Designer.cs diff --git a/Enigma/Form1.Designer.cs b/Enigma/Form1.Designer.cs index bdfe9a3..efefc70 100644 --- a/Enigma/Form1.Designer.cs +++ b/Enigma/Form1.Designer.cs @@ -28,9 +28,18 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + this.SuspendLayout(); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Text = "Form1"; + this.ClientSize = new System.Drawing.Size(1094, 652); + this.Name = "Form1"; + this.Text = "Form template thing"; + this.Load += new System.EventHandler(this.Form1_Load); + this.ResumeLayout(false); + } #endregion diff --git a/Enigma/Form1.cs b/Enigma/Form1.cs index ab08971..2897817 100644 --- a/Enigma/Form1.cs +++ b/Enigma/Form1.cs @@ -7,14 +7,20 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using MetroFramework.Forms; namespace Enigma { - public partial class Form1 : Form + public partial class Form1 : MetroForm { public Form1() { InitializeComponent(); } + + private void Form1_Load(object sender, EventArgs e) + { + + } } } diff --git a/Enigma/Form1.resx b/Enigma/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Enigma/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Enigma/packages.config b/Enigma/packages.config new file mode 100644 index 0000000..bad4c3f --- /dev/null +++ b/Enigma/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file