Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

LINQ Challenges and SQL Server Compact Edition

, 25 Mar 2008
Overcoming challenges with LINQ to SQL and using LINQ with SQL Server Compact Edition.
namespace TimeApp.UI {
	partial class ProjectForm {
		/// <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.tlpMain = new System.Windows.Forms.TableLayoutPanel();
			this.txtCode = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.label1 = new System.Windows.Forms.Label();
			this.txtName = new System.Windows.Forms.TextBox();
			this.flpProjectFlags = new System.Windows.Forms.FlowLayoutPanel();
			this.chkDetectAway = new System.Windows.Forms.CheckBox();
			this.chkIsBillable = new System.Windows.Forms.CheckBox();
			this.chkIsComplete = new System.Windows.Forms.CheckBox();
			this.gbTasks = new System.Windows.Forms.GroupBox();
			this.lbTasks = new System.Windows.Forms.ListBox();
			this.tlpTaskButtons = new System.Windows.Forms.TableLayoutPanel();
			this.btnDelete = new System.Windows.Forms.Button();
			this.btnEdit = new System.Windows.Forms.Button();
			this.btnAdd = new System.Windows.Forms.Button();
			this.label2 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.cbEstimationComparisonType = new System.Windows.Forms.ComboBox();
			this.flpButtons = new System.Windows.Forms.FlowLayoutPanel();
			this.btnCancel = new System.Windows.Forms.Button();
			this.btnOK = new System.Windows.Forms.Button();
			this.ctlEstimatedDuration = new TimeApp.UI.UserControls.DurationControl();
			this.tlpMain.SuspendLayout();
			this.flpProjectFlags.SuspendLayout();
			this.gbTasks.SuspendLayout();
			this.tlpTaskButtons.SuspendLayout();
			this.flpButtons.SuspendLayout();
			this.SuspendLayout();
			// 
			// tlpMain
			// 
			this.tlpMain.AutoSize = true;
			this.tlpMain.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			this.tlpMain.ColumnCount = 2;
			this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			this.tlpMain.Controls.Add(this.label4, 0, 3);
			this.tlpMain.Controls.Add(this.txtCode, 1, 1);
			this.tlpMain.Controls.Add(this.label3, 0, 1);
			this.tlpMain.Controls.Add(this.label1, 0, 0);
			this.tlpMain.Controls.Add(this.txtName, 1, 0);
			this.tlpMain.Controls.Add(this.flpProjectFlags, 1, 4);
			this.tlpMain.Controls.Add(this.gbTasks, 0, 5);
			this.tlpMain.Controls.Add(this.label2, 0, 2);
			this.tlpMain.Controls.Add(this.ctlEstimatedDuration, 1, 2);
			this.tlpMain.Controls.Add(this.cbEstimationComparisonType, 1, 3);
			this.tlpMain.Controls.Add(this.flpButtons, 1, 6);
			this.tlpMain.Dock = System.Windows.Forms.DockStyle.Fill;
			this.tlpMain.Location = new System.Drawing.Point(5, 5);
			this.tlpMain.Name = "tlpMain";
			this.tlpMain.RowCount = 7;
			this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpMain.Size = new System.Drawing.Size(417, 385);
			this.tlpMain.TabIndex = 0;
			// 
			// txtCode
			// 
			this.txtCode.Location = new System.Drawing.Point(105, 29);
			this.txtCode.MaxLength = 25;
			this.txtCode.Name = "txtCode";
			this.txtCode.Size = new System.Drawing.Size(189, 20);
			this.txtCode.TabIndex = 3;
			// 
			// label3
			// 
			this.label3.Anchor = System.Windows.Forms.AnchorStyles.Right;
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(67, 32);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(32, 13);
			this.label3.TabIndex = 2;
			this.label3.Text = "&Code";
			// 
			// label1
			// 
			this.label1.Anchor = System.Windows.Forms.AnchorStyles.Right;
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(64, 6);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(35, 13);
			this.label1.TabIndex = 0;
			this.label1.Text = "&Name";
			// 
			// txtName
			// 
			this.txtName.Dock = System.Windows.Forms.DockStyle.Fill;
			this.txtName.Location = new System.Drawing.Point(105, 3);
			this.txtName.MaxLength = 100;
			this.txtName.Name = "txtName";
			this.txtName.Size = new System.Drawing.Size(309, 20);
			this.txtName.TabIndex = 1;
			// 
			// flpProjectFlags
			// 
			this.flpProjectFlags.AutoSize = true;
			this.flpProjectFlags.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			this.flpProjectFlags.Controls.Add(this.chkDetectAway);
			this.flpProjectFlags.Controls.Add(this.chkIsBillable);
			this.flpProjectFlags.Controls.Add(this.chkIsComplete);
			this.flpProjectFlags.Dock = System.Windows.Forms.DockStyle.Fill;
			this.flpProjectFlags.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
			this.flpProjectFlags.Location = new System.Drawing.Point(105, 108);
			this.flpProjectFlags.Name = "flpProjectFlags";
			this.flpProjectFlags.Size = new System.Drawing.Size(309, 72);
			this.flpProjectFlags.TabIndex = 8;
			// 
			// chkDetectAway
			// 
			this.chkDetectAway.AutoSize = true;
			this.chkDetectAway.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.chkDetectAway.Location = new System.Drawing.Point(3, 3);
			this.chkDetectAway.Name = "chkDetectAway";
			this.chkDetectAway.Size = new System.Drawing.Size(302, 18);
			this.chkDetectAway.TabIndex = 0;
			this.chkDetectAway.Text = "Pause when I am &away from the computer for this project.";
			this.chkDetectAway.UseVisualStyleBackColor = true;
			// 
			// chkIsBillable
			// 
			this.chkIsBillable.AutoSize = true;
			this.chkIsBillable.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.chkIsBillable.Location = new System.Drawing.Point(3, 27);
			this.chkIsBillable.Name = "chkIsBillable";
			this.chkIsBillable.Size = new System.Drawing.Size(135, 18);
			this.chkIsBillable.TabIndex = 1;
			this.chkIsBillable.Text = "This project is &billable.";
			this.chkIsBillable.UseVisualStyleBackColor = true;
			// 
			// chkIsComplete
			// 
			this.chkIsComplete.AutoSize = true;
			this.chkIsComplete.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.chkIsComplete.Location = new System.Drawing.Point(3, 51);
			this.chkIsComplete.Name = "chkIsComplete";
			this.chkIsComplete.Size = new System.Drawing.Size(152, 18);
			this.chkIsComplete.TabIndex = 2;
			this.chkIsComplete.Text = "This project is com&pleted.";
			this.chkIsComplete.UseVisualStyleBackColor = true;
			// 
			// gbTasks
			// 
			this.tlpMain.SetColumnSpan(this.gbTasks, 2);
			this.gbTasks.Controls.Add(this.lbTasks);
			this.gbTasks.Controls.Add(this.tlpTaskButtons);
			this.gbTasks.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.gbTasks.Location = new System.Drawing.Point(0, 183);
			this.gbTasks.Margin = new System.Windows.Forms.Padding(0);
			this.gbTasks.Name = "gbTasks";
			this.gbTasks.Size = new System.Drawing.Size(414, 168);
			this.gbTasks.TabIndex = 9;
			this.gbTasks.TabStop = false;
			this.gbTasks.Text = "&Tasks";
			// 
			// lbTasks
			// 
			this.lbTasks.Dock = System.Windows.Forms.DockStyle.Fill;
			this.lbTasks.FormattingEnabled = true;
			this.lbTasks.Location = new System.Drawing.Point(3, 16);
			this.lbTasks.Name = "lbTasks";
			this.lbTasks.Size = new System.Drawing.Size(327, 147);
			this.lbTasks.TabIndex = 0;
			this.lbTasks.SelectedIndexChanged += new System.EventHandler(this.lbTasks_SelectedIndexChanged);
			this.lbTasks.DoubleClick += new System.EventHandler(this.lbTasks_DoubleClick);
			// 
			// tlpTaskButtons
			// 
			this.tlpTaskButtons.AutoSize = true;
			this.tlpTaskButtons.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			this.tlpTaskButtons.ColumnCount = 1;
			this.tlpTaskButtons.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
			this.tlpTaskButtons.Controls.Add(this.btnDelete, 0, 2);
			this.tlpTaskButtons.Controls.Add(this.btnEdit, 0, 1);
			this.tlpTaskButtons.Controls.Add(this.btnAdd, 0, 0);
			this.tlpTaskButtons.Dock = System.Windows.Forms.DockStyle.Right;
			this.tlpTaskButtons.Location = new System.Drawing.Point(330, 16);
			this.tlpTaskButtons.Name = "tlpTaskButtons";
			this.tlpTaskButtons.RowCount = 4;
			this.tlpTaskButtons.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpTaskButtons.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpTaskButtons.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpTaskButtons.RowStyles.Add(new System.Windows.Forms.RowStyle());
			this.tlpTaskButtons.Size = new System.Drawing.Size(81, 149);
			this.tlpTaskButtons.TabIndex = 1;
			// 
			// btnDelete
			// 
			this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnDelete.Location = new System.Drawing.Point(3, 61);
			this.btnDelete.Name = "btnDelete";
			this.btnDelete.Size = new System.Drawing.Size(75, 23);
			this.btnDelete.TabIndex = 2;
			this.btnDelete.Text = "&Delete";
			this.btnDelete.UseVisualStyleBackColor = true;
			this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
			// 
			// btnEdit
			// 
			this.btnEdit.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnEdit.Location = new System.Drawing.Point(3, 32);
			this.btnEdit.Name = "btnEdit";
			this.btnEdit.Size = new System.Drawing.Size(75, 23);
			this.btnEdit.TabIndex = 1;
			this.btnEdit.Text = "&Edit...";
			this.btnEdit.UseVisualStyleBackColor = true;
			this.btnEdit.Click += new System.EventHandler(this.btnEdit_Click);
			// 
			// btnAdd
			// 
			this.btnAdd.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnAdd.Location = new System.Drawing.Point(3, 3);
			this.btnAdd.Name = "btnAdd";
			this.btnAdd.Size = new System.Drawing.Size(75, 23);
			this.btnAdd.TabIndex = 0;
			this.btnAdd.Text = "&Add...";
			this.btnAdd.UseVisualStyleBackColor = true;
			this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
			// 
			// label2
			// 
			this.label2.Anchor = System.Windows.Forms.AnchorStyles.Right;
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(3, 58);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(96, 13);
			this.label2.TabIndex = 4;
			this.label2.Text = "&Estimated Duration";
			// 
			// label4
			// 
			this.label4.Anchor = System.Windows.Forms.AnchorStyles.Right;
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(17, 85);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(82, 13);
			this.label4.TabIndex = 6;
			this.label4.Text = "Estimation T&ype";
			// 
			// cbEstimationComparisonType
			// 
			this.cbEstimationComparisonType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
			this.cbEstimationComparisonType.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.cbEstimationComparisonType.FormattingEnabled = true;
			this.cbEstimationComparisonType.Location = new System.Drawing.Point(105, 81);
			this.cbEstimationComparisonType.Name = "cbEstimationComparisonType";
			this.cbEstimationComparisonType.Size = new System.Drawing.Size(121, 21);
			this.cbEstimationComparisonType.TabIndex = 7;
			// 
			// flpButtons
			// 
			this.flpButtons.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.flpButtons.AutoSize = true;
			this.flpButtons.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			this.flpButtons.Controls.Add(this.btnCancel);
			this.flpButtons.Controls.Add(this.btnOK);
			this.flpButtons.FlowDirection = System.Windows.Forms.FlowDirection.RightToLeft;
			this.flpButtons.Location = new System.Drawing.Point(255, 356);
			this.flpButtons.Margin = new System.Windows.Forms.Padding(0);
			this.flpButtons.Name = "flpButtons";
			this.flpButtons.Size = new System.Drawing.Size(162, 29);
			this.flpButtons.TabIndex = 10;
			// 
			// btnCancel
			// 
			this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.btnCancel.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnCancel.Location = new System.Drawing.Point(84, 3);
			this.btnCancel.Name = "btnCancel";
			this.btnCancel.Size = new System.Drawing.Size(75, 23);
			this.btnCancel.TabIndex = 1;
			this.btnCancel.Text = "Cancel";
			this.btnCancel.UseVisualStyleBackColor = true;
			// 
			// btnOK
			// 
			this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.btnOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.btnOK.Location = new System.Drawing.Point(3, 3);
			this.btnOK.Name = "btnOK";
			this.btnOK.Size = new System.Drawing.Size(75, 23);
			this.btnOK.TabIndex = 0;
			this.btnOK.Text = "OK";
			this.btnOK.UseVisualStyleBackColor = true;
			// 
			// ctlEstimatedDuration
			// 
			this.ctlEstimatedDuration.AllowNull = true;
			this.ctlEstimatedDuration.AutoSize = true;
			this.ctlEstimatedDuration.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			this.ctlEstimatedDuration.Duration = 0;
			this.ctlEstimatedDuration.Hours = ((byte)(0));
			this.ctlEstimatedDuration.Location = new System.Drawing.Point(105, 55);
			this.ctlEstimatedDuration.Minutes = ((byte)(0));
			this.ctlEstimatedDuration.Name = "ctlEstimatedDuration";
			this.ctlEstimatedDuration.Size = new System.Drawing.Size(261, 20);
			this.ctlEstimatedDuration.TabIndex = 5;
			// 
			// ProjectForm
			// 
			this.AcceptButton = this.btnOK;
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.AutoSize = true;
			this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			this.CancelButton = this.btnCancel;
			this.ClientSize = new System.Drawing.Size(427, 395);
			this.Controls.Add(this.tlpMain);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "ProjectForm";
			this.Padding = new System.Windows.Forms.Padding(5);
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Project";
			this.tlpMain.ResumeLayout(false);
			this.tlpMain.PerformLayout();
			this.flpProjectFlags.ResumeLayout(false);
			this.flpProjectFlags.PerformLayout();
			this.gbTasks.ResumeLayout(false);
			this.gbTasks.PerformLayout();
			this.tlpTaskButtons.ResumeLayout(false);
			this.flpButtons.ResumeLayout(false);
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.TableLayoutPanel tlpMain;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.CheckBox chkIsBillable;
		private System.Windows.Forms.CheckBox chkIsComplete;
		private System.Windows.Forms.TextBox txtName;
		private System.Windows.Forms.CheckBox chkDetectAway;
		private System.Windows.Forms.FlowLayoutPanel flpProjectFlags;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox txtCode;
		private System.Windows.Forms.GroupBox gbTasks;
		private System.Windows.Forms.ListBox lbTasks;
		private System.Windows.Forms.TableLayoutPanel tlpTaskButtons;
		private System.Windows.Forms.Button btnDelete;
		private System.Windows.Forms.Button btnEdit;
		private System.Windows.Forms.Button btnAdd;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label4;
		private TimeApp.UI.UserControls.DurationControl ctlEstimatedDuration;
		private System.Windows.Forms.ComboBox cbEstimationComparisonType;
		private System.Windows.Forms.FlowLayoutPanel flpButtons;
		private System.Windows.Forms.Button btnCancel;
		private System.Windows.Forms.Button btnOK;
	}
}

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 Code Project Open License (CPOL)

Share

About the Author

Matt Sollars
Web Developer
United States United States
I began programming on my Commodore 64 at around the age of 12. After migrating to DOS and then Windows, I decided to take on the Web. Several languages and platforms later, I have settled in with .NET nicely. I am currently the owner of a software consulting company and lead application developer for a learning-based technology consultation company.
 
The love of a finished application is usually at war with the desire to improve it as soon as it's released (they're never really finished).

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 25 Mar 2008
Article Copyright 2007 by Matt Sollars
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid