diff --git a/Day 3 Class Examples/gui/examplegui.sln b/Day 3 Class Examples/gui/examplegui.sln new file mode 100644 index 0000000..225dafa --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "examplegui", "examplegui\examplegui.csproj", "{223D8FB9-437B-4734-9480-16F62AD66517}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {223D8FB9-437B-4734-9480-16F62AD66517}.Debug|x86.ActiveCfg = Debug|x86 + {223D8FB9-437B-4734-9480-16F62AD66517}.Debug|x86.Build.0 = Debug|x86 + {223D8FB9-437B-4734-9480-16F62AD66517}.Release|x86.ActiveCfg = Release|x86 + {223D8FB9-437B-4734-9480-16F62AD66517}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Day 3 Class Examples/gui/examplegui/Form1.Designer.cs b/Day 3 Class Examples/gui/examplegui/Form1.Designer.cs new file mode 100644 index 0000000..9ae5079 --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/Form1.Designer.cs @@ -0,0 +1,93 @@ +namespace examplegui +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.txtInput1 = new System.Windows.Forms.TextBox(); + this.txtInput2 = new System.Windows.Forms.TextBox(); + this.btnCalculate = new System.Windows.Forms.Button(); + this.lblOutput = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // txtInput1 + // + this.txtInput1.Location = new System.Drawing.Point(79, 26); + this.txtInput1.Name = "txtInput1"; + this.txtInput1.Size = new System.Drawing.Size(100, 20); + this.txtInput1.TabIndex = 0; + // + // txtInput2 + // + this.txtInput2.Location = new System.Drawing.Point(79, 52); + this.txtInput2.Name = "txtInput2"; + this.txtInput2.Size = new System.Drawing.Size(100, 20); + this.txtInput2.TabIndex = 1; + // + // btnCalculate + // + this.btnCalculate.Location = new System.Drawing.Point(79, 78); + this.btnCalculate.Name = "btnCalculate"; + this.btnCalculate.Size = new System.Drawing.Size(75, 23); + this.btnCalculate.TabIndex = 2; + this.btnCalculate.Text = "Calculate"; + this.btnCalculate.UseVisualStyleBackColor = true; + this.btnCalculate.Click += new System.EventHandler(this.btnCalculate_Click); + // + // lblOutput + // + this.lblOutput.AutoSize = true; + this.lblOutput.Location = new System.Drawing.Point(79, 108); + this.lblOutput.Name = "lblOutput"; + this.lblOutput.Size = new System.Drawing.Size(0, 13); + this.lblOutput.TabIndex = 3; + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(292, 273); + this.Controls.Add(this.lblOutput); + this.Controls.Add(this.btnCalculate); + this.Controls.Add(this.txtInput2); + this.Controls.Add(this.txtInput1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox txtInput1; + private System.Windows.Forms.TextBox txtInput2; + private System.Windows.Forms.Button btnCalculate; + private System.Windows.Forms.Label lblOutput; + } +} + diff --git a/Day 3 Class Examples/gui/examplegui/Form1.cs b/Day 3 Class Examples/gui/examplegui/Form1.cs new file mode 100644 index 0000000..10a971a --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/Form1.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace examplegui +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void btnCalculate_Click(object sender, EventArgs e) + { + lblOutput.Text = (Int32.Parse(txtInput1.Text) + Int32.Parse(txtInput2.Text)).ToString(); + } + } +} diff --git a/Day 3 Class Examples/gui/examplegui/Form1.resx b/Day 3 Class Examples/gui/examplegui/Form1.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/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/Day 3 Class Examples/gui/examplegui/Program.cs b/Day 3 Class Examples/gui/examplegui/Program.cs new file mode 100644 index 0000000..b292a93 --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace examplegui +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Day 3 Class Examples/gui/examplegui/Properties/AssemblyInfo.cs b/Day 3 Class Examples/gui/examplegui/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f29d774 --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 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("examplegui")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("examplegui")] +[assembly: AssemblyCopyright("Copyright © 2014")] +[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)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("024ea35e-35c9-447e-ae2d-74cba54bf5c0")] + +// 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/Day 3 Class Examples/gui/examplegui/Properties/Resources.Designer.cs b/Day 3 Class Examples/gui/examplegui/Properties/Resources.Designer.cs new file mode 100644 index 0000000..c725751 --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/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 examplegui.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("examplegui.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/Day 3 Class Examples/gui/examplegui/Properties/Resources.resx b/Day 3 Class Examples/gui/examplegui/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/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/Day 3 Class Examples/gui/examplegui/Properties/Settings.Designer.cs b/Day 3 Class Examples/gui/examplegui/Properties/Settings.Designer.cs new file mode 100644 index 0000000..2b02e4c --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/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 examplegui.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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/Day 3 Class Examples/gui/examplegui/Properties/Settings.settings b/Day 3 Class Examples/gui/examplegui/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.exe b/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.exe new file mode 100644 index 0000000..7b654de Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.exe differ diff --git a/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.pdb b/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.pdb new file mode 100644 index 0000000..5608178 Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.pdb differ diff --git a/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.vshost.exe b/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.vshost.exe new file mode 100644 index 0000000..bb84a51 Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.vshost.exe differ diff --git a/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.vshost.exe.manifest b/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.vshost.exe.manifest new file mode 100644 index 0000000..f96b1d6 --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/bin/Debug/examplegui.vshost.exe.manifest @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Day 3 Class Examples/gui/examplegui/examplegui.csproj b/Day 3 Class Examples/gui/examplegui/examplegui.csproj new file mode 100644 index 0000000..4cda7cf --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/examplegui.csproj @@ -0,0 +1,87 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {223D8FB9-437B-4734-9480-16F62AD66517} + WinExe + Properties + examplegui + examplegui + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..00db8e6 Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..2a31306 Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.Form1.resources b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.Form1.resources differ diff --git a/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.Properties.Resources.resources b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.Properties.Resources.resources differ diff --git a/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.csproj.FileListAbsolute.txt b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..0c47a2e --- /dev/null +++ b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.csproj.FileListAbsolute.txt @@ -0,0 +1,7 @@ +c:\users\nathan\documents\visual studio 2010\Projects\examplegui\examplegui\bin\Debug\examplegui.exe +c:\users\nathan\documents\visual studio 2010\Projects\examplegui\examplegui\bin\Debug\examplegui.pdb +c:\users\nathan\documents\visual studio 2010\Projects\examplegui\examplegui\obj\x86\Debug\examplegui.Form1.resources +c:\users\nathan\documents\visual studio 2010\Projects\examplegui\examplegui\obj\x86\Debug\examplegui.Properties.Resources.resources +c:\users\nathan\documents\visual studio 2010\Projects\examplegui\examplegui\obj\x86\Debug\examplegui.csproj.GenerateResource.Cache +c:\users\nathan\documents\visual studio 2010\Projects\examplegui\examplegui\obj\x86\Debug\examplegui.exe +c:\users\nathan\documents\visual studio 2010\Projects\examplegui\examplegui\obj\x86\Debug\examplegui.pdb diff --git a/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.csproj.GenerateResource.Cache b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.csproj.GenerateResource.Cache new file mode 100644 index 0000000..71810fe Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.csproj.GenerateResource.Cache differ diff --git a/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.exe b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.exe new file mode 100644 index 0000000..7b654de Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.exe differ diff --git a/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.pdb b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.pdb new file mode 100644 index 0000000..5608178 Binary files /dev/null and b/Day 3 Class Examples/gui/examplegui/obj/x86/Debug/examplegui.pdb differ