Skip to content
Snippets Groups Projects
Commit d66b76b1 authored by Riley Mcgee's avatar Riley Mcgee
Browse files

Setup For Branch, refactored View Into a module

parent 6cd81ec5
No related branches found
No related tags found
No related merge requests found
Showing
with 31 additions and 11 deletions
......@@ -47,16 +47,16 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<Compile Include="Views\Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<Compile Include="Views\Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="GifImage.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<EmbeddedResource Include="Views\Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
......
......@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using Gifitti.Views;
namespace Gifitti
{
......@@ -14,6 +15,7 @@ namespace Gifitti
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
......
namespace Gifitti
namespace Gifitti.Views
{
partial class Form1
{
......@@ -37,9 +37,10 @@
// button1
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button1.Location = new System.Drawing.Point(12, 399);
this.button1.Location = new System.Drawing.Point(14, 499);
this.button1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 42);
this.button1.Size = new System.Drawing.Size(84, 52);
this.button1.TabIndex = 0;
this.button1.Text = "Open";
this.button1.UseVisualStyleBackColor = true;
......@@ -47,9 +48,10 @@
//
// gifView
//
this.gifView.Location = new System.Drawing.Point(12, 12);
this.gifView.Location = new System.Drawing.Point(14, 15);
this.gifView.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.gifView.Name = "gifView";
this.gifView.Size = new System.Drawing.Size(608, 381);
this.gifView.Size = new System.Drawing.Size(684, 476);
this.gifView.TabIndex = 1;
this.gifView.TabStop = false;
//
......@@ -59,15 +61,17 @@
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(632, 453);
this.ClientSize = new System.Drawing.Size(711, 566);
this.Controls.Add(this.gifView);
this.Controls.Add(this.button1);
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.MaximizeBox = false;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.gifView)).EndInit();
this.ResumeLayout(false);
......
......@@ -9,7 +9,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gifitti
namespace Gifitti.Views
{
public partial class Form1 : Form
{
......@@ -50,5 +50,10 @@ namespace Gifitti
ActiveControl = gifView;
}
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -7,3 +7,12 @@ C:\Users\nicol\Documents\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.Propertie
C:\Users\nicol\Documents\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.csproj.GenerateResource.Cache
C:\Users\nicol\Documents\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.exe
C:\Users\nicol\Documents\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.pdb
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\bin\Debug\Gifitti.exe.config
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.pdb
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\bin\Debug\Gifitti.exe
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\bin\Debug\Gifitti.pdb
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.csprojResolveAssemblyReference.cache
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.Properties.Resources.resources
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.csproj.GenerateResource.Cache
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.exe
C:\Code\C_Sharp\Gifitti\src\Gifitti\Gifitti\obj\Debug\Gifitti.Views.Form1.resources
No preview for this file type
No preview for this file type
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment