Skip to content
Snippets Groups Projects
Commit 8e896f27 authored by Nick Kozel's avatar Nick Kozel
Browse files

adding help menu

parent 89c54af5
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,12 @@
<Compile Include="Models\GifModel.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="View_Models\Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="View_Models\Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<EmbeddedResource Include="View_Models\Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
......@@ -72,6 +78,9 @@
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<EmbeddedResource Include="View_Models\Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource>
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
......
......@@ -49,6 +49,7 @@
this.label3 = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.saveGifFileDialog = new System.Windows.Forms.SaveFileDialog();
this.menuHelp = new System.Windows.Forms.MenuItem();
((System.ComponentModel.ISupportInitialize)(this.gifView)).BeginInit();
this.SuspendLayout();
//
......@@ -69,7 +70,8 @@
// mainMenu1
//
this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.meneFile});
this.meneFile,
this.menuHelp});
//
// meneFile
//
......@@ -196,6 +198,12 @@
this.timer1.Interval = 20;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
//
// menuHelp
//
this.menuHelp.Index = 1;
this.menuHelp.Text = "Help";
this.menuHelp.Click += new System.EventHandler(this.menuOpenHelp);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
......@@ -212,7 +220,7 @@
this.Menu = this.mainMenu1;
this.Name = "Form1";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Form1";
this.Text = "Gifitti";
this.Load += new System.EventHandler(this.Form1_Load);
((System.ComponentModel.ISupportInitialize)(this.gifView)).EndInit();
this.ResumeLayout(false);
......@@ -244,6 +252,7 @@
private System.Windows.Forms.MenuItem menuFileSaveAs;
private System.Windows.Forms.SaveFileDialog saveGifFileDialog;
private System.Windows.Forms.MenuItem menuOpenFile;
private System.Windows.Forms.MenuItem menuHelp;
}
}
......@@ -325,5 +325,11 @@ namespace Gifitti.View_Models
textBox2.Text = gm.numberOfFrames.ToString();
}
}
private void menuOpenHelp(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.Show();
}
}
}
namespace Gifitti.View_Models
{
partial class Form2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.pickFrames = new System.Windows.Forms.LinkLabel();
this.savingGIF = new System.Windows.Forms.LinkLabel();
this.savingImage = new System.Windows.Forms.LinkLabel();
this.openingGIF = new System.Windows.Forms.LinkLabel();
this.label1 = new System.Windows.Forms.Label();
this.richTextBox1 = new System.Windows.Forms.RichTextBox();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.pickFrames);
this.groupBox1.Controls.Add(this.savingGIF);
this.groupBox1.Controls.Add(this.savingImage);
this.groupBox1.Controls.Add(this.openingGIF);
this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(152, 420);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Sections";
//
// pickFrames
//
this.pickFrames.AutoSize = true;
this.pickFrames.Location = new System.Drawing.Point(6, 151);
this.pickFrames.Name = "pickFrames";
this.pickFrames.Size = new System.Drawing.Size(104, 17);
this.pickFrames.TabIndex = 4;
this.pickFrames.TabStop = true;
this.pickFrames.Text = "Picking Frames";
this.pickFrames.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.pickFrames_LinkClicked);
//
// savingGIF
//
this.savingGIF.AutoSize = true;
this.savingGIF.Location = new System.Drawing.Point(6, 108);
this.savingGIF.Name = "savingGIF";
this.savingGIF.Size = new System.Drawing.Size(87, 17);
this.savingGIF.TabIndex = 3;
this.savingGIF.TabStop = true;
this.savingGIF.Text = "Saving (GIF)";
this.savingGIF.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.savingGIF_LinkClicked);
//
// savingImage
//
this.savingImage.AutoSize = true;
this.savingImage.Location = new System.Drawing.Point(6, 67);
this.savingImage.Name = "savingImage";
this.savingImage.Size = new System.Drawing.Size(103, 17);
this.savingImage.TabIndex = 2;
this.savingImage.TabStop = true;
this.savingImage.Text = "Saving (Image)";
this.savingImage.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.savingImage_LinkClicked);
//
// openingGIF
//
this.openingGIF.AutoSize = true;
this.openingGIF.Location = new System.Drawing.Point(6, 30);
this.openingGIF.Name = "openingGIF";
this.openingGIF.Size = new System.Drawing.Size(88, 17);
this.openingGIF.TabIndex = 1;
this.openingGIF.TabStop = true;
this.openingGIF.Text = "Opening GIF";
this.openingGIF.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.openingGIF_LinkClicked);
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F);
this.label1.Location = new System.Drawing.Point(267, 21);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(108, 25);
this.label1.TabIndex = 1;
this.label1.Text = "Information";
//
// richTextBox1
//
this.richTextBox1.Location = new System.Drawing.Point(170, 49);
this.richTextBox1.Name = "richTextBox1";
this.richTextBox1.ReadOnly = true;
this.richTextBox1.Size = new System.Drawing.Size(300, 383);
this.richTextBox1.TabIndex = 2;
this.richTextBox1.Text = "";
//
// Form2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(482, 453);
this.Controls.Add(this.richTextBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.groupBox1);
this.Name = "Form2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Help";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.LinkLabel savingGIF;
private System.Windows.Forms.LinkLabel savingImage;
private System.Windows.Forms.LinkLabel openingGIF;
private System.Windows.Forms.LinkLabel pickFrames;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.RichTextBox richTextBox1;
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Gifitti.View_Models
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
private void openingGIF_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
richTextBox1.Text = "To open a GIF";
}
private void savingImage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
richTextBox1.Text = "To save an image";
}
private void savingGIF_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
richTextBox1.Text = "To save a GIF";
}
private void pickFrames_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
richTextBox1.Text = "To select the range of frames";
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
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