Click here to Skip to main content
15,884,628 members
Articles / Programming Languages / C#

CooksMate

Rate me:
Please Sign up or sign in to vote.
3.32/5 (8 votes)
21 Jan 2008GPL32 min read 56.1K   1K   23  
A simple program to help get the timing of a roast dinner
/*
 * Created by SharpDevelop.
 * User: andy
 * Date: 21/12/2007
 * Time: 19:34
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Drawing;
using System.Windows.Forms;
using log4net;

namespace uk.org.aspellclark.common.gui
{
    /// <summary>
    ///   <name>DlgAbstract</name>
    ///   <namespace>uk.org.aspellclark.todolist</namespace>
    ///   <version>1.0</version>
    ///   <author>Andy Aspell-Clark</author>
    ///   <description>Display a simple about box
    ///   </description>
    ///   <history>
    ///     <historyitem> 1 Jan 2008  1.0 ARAC  Initial Version.</historyitem>
    ///   </history>
    /// </summary>
	public class DlgAbstract : System.Windows.Forms.Form
	{
		// Create a logger for use in this class
		private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);

		public string buttonSelected = common.gui.Constants.CANCEL_BUTTON;
		
		/// <summary>
		/// Action Dialog constructor
		/// </summary>
		public DlgAbstract()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
		}
		
		#region Windows Forms Designer generated code
		/// <summary>
		/// This method is required for Windows Forms designer support.
		/// Do not change the method contents inside the source code editor. The Forms designer might
		/// not be able to load this method if it was changed manually.
		/// </summary>
		private void InitializeComponent() {
			this.btnDone = new System.Windows.Forms.Button();
			this.btnCancel = new System.Windows.Forms.Button();
			this.panelComponents = new System.Windows.Forms.Panel();
			this.SuspendLayout();
			// 
			// btnDone
			// 
			this.btnDone.Location = new System.Drawing.Point(37, 202);
			this.btnDone.Name = "btnDone";
			this.btnDone.Size = new System.Drawing.Size(75, 23);
			this.btnDone.TabIndex = 8;
			this.btnDone.Text = "Done";
			this.btnDone.UseVisualStyleBackColor = true;
			this.btnDone.Click += new System.EventHandler(this.BtnDoneClick);
			// 
			// btnCancel
			// 
			this.btnCancel.Location = new System.Drawing.Point(173, 202);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(75, 23);
			this.btnCancel.TabIndex = 9;
			this.btnCancel.Text = "Cancel";
			this.btnCancel.UseVisualStyleBackColor = true;
			this.btnCancel.Click += new System.EventHandler(this.BtnCancelClick);
			// 
			// panelComponents
			// 
			this.panelComponents.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
									| System.Windows.Forms.AnchorStyles.Left) 
									| System.Windows.Forms.AnchorStyles.Right)));
			this.panelComponents.Location = new System.Drawing.Point(12, 12);
			this.panelComponents.Name = "panelComponents";
			this.panelComponents.Size = new System.Drawing.Size(280, 184);
			this.panelComponents.TabIndex = 10;
			// 
			// DlgAbstract
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(304, 237);
			this.Controls.Add(this.panelComponents);
			this.Controls.Add(this.btnCancel);
			this.Controls.Add(this.btnDone);
			this.MaximumSize = new System.Drawing.Size(312, 264);
			this.MinimumSize = new System.Drawing.Size(312, 264);
			this.Name = "DlgAbstract";
			this.ShowInTaskbar = false;
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
			this.Text = "Abstract Dialog";
			this.Load += new System.EventHandler(this.DlgActionLoad);
			this.ResumeLayout(false);
		}
		private System.Windows.Forms.Panel panelComponents;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.Button btnDone;
		#endregion


		void DlgActionLoad(object sender, EventArgs e)
		{
			newStep = new ActionStep();
		}
		
		
		void BtnCancelClick(object sender, EventArgs e)
		{
			this.buttonSelected = uk.org.aspellclark.common.gui.Constants.CANCEL_BUTTON;
			this.Close();
		}
		
		void BtnDoneClick(object sender, EventArgs e)
		{
			this.buttonSelected = uk.org.aspellclark.common.gui.Constants.DONE_BUTTON;
			this.Close();
		}
		
		
	}//class
}//namespace

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.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Software Developer (Senior) Airbus Defense and Space
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions