|
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Reflection;
using System.Reflection.Emit;
namespace Johnvey.GmailAgent.Applet
{
/// <summary>
/// Summary description for About.
/// </summary>
public class About : System.Windows.Forms.Form
{
private System.Windows.Forms.Label aboutLabel1;
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.Label aboutLabel2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.LinkLabel linkLabel1;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public About()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
aboutLabel2.Text = "Version " + Application.ProductVersion;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(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.aboutLabel1 = new System.Windows.Forms.Label();
this.aboutLabel2 = new System.Windows.Forms.Label();
this.okButton = new System.Windows.Forms.Button();
this.label1 = new System.Windows.Forms.Label();
this.linkLabel1 = new System.Windows.Forms.LinkLabel();
this.SuspendLayout();
//
// aboutLabel1
//
this.aboutLabel1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.aboutLabel1.Location = new System.Drawing.Point(24, 16);
this.aboutLabel1.Name = "aboutLabel1";
this.aboutLabel1.Size = new System.Drawing.Size(232, 23);
this.aboutLabel1.TabIndex = 0;
this.aboutLabel1.Text = "Gmail Agent";
this.aboutLabel1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// aboutLabel2
//
this.aboutLabel2.Location = new System.Drawing.Point(24, 40);
this.aboutLabel2.Name = "aboutLabel2";
this.aboutLabel2.Size = new System.Drawing.Size(232, 16);
this.aboutLabel2.TabIndex = 1;
this.aboutLabel2.Text = "Version:";
this.aboutLabel2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// okButton
//
this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System;
this.okButton.Location = new System.Drawing.Point(107, 160);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(67, 23);
this.okButton.TabIndex = 2;
this.okButton.Text = "OK";
this.okButton.Click += new System.EventHandler(this.ok_onClick);
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 64);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(232, 56);
this.label1.TabIndex = 3;
this.label1.Text = "Written by Johnvey Hwang. Released under the GPL. Gmail is a registered tradema" +
"rk of Google Inc.";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// linkLabel1
//
this.linkLabel1.Location = new System.Drawing.Point(40, 128);
this.linkLabel1.Name = "linkLabel1";
this.linkLabel1.Size = new System.Drawing.Size(200, 16);
this.linkLabel1.TabIndex = 4;
this.linkLabel1.TabStop = true;
this.linkLabel1.Tag = "";
this.linkLabel1.Text = "http://johnvey.com/features/gmailapi";
this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.link_onClick);
//
// About
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(282, 208);
this.Controls.Add(this.linkLabel1);
this.Controls.Add(this.label1);
this.Controls.Add(this.okButton);
this.Controls.Add(this.aboutLabel2);
this.Controls.Add(this.aboutLabel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
this.MaximizeBox = false;
this.Name = "About";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "About";
this.ResumeLayout(false);
}
#endregion
private void ok_onClick(object sender, System.EventArgs e) {
this.Close();
}
private void link_onClick(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e) {
System.Diagnostics.Process.Start("http://johnvey.com/features/gmailapi");
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.