Click here to Skip to main content
12,246,406 members (36,372 online)
Click here to Skip to main content

Stats

139.3K views
1K downloads
165 bookmarked
Posted

LINQ Challenges and SQL Server Compact Edition

, 25 Mar 2008 CPOL
Overcoming challenges with LINQ to SQL and using LINQ with SQL Server Compact Edition.
namespace TimeApp.UI.UserControls {
	partial class DurationControl {
		/// <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 Component 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.flpMain = new System.Windows.Forms.FlowLayoutPanel();
			this.flpDuration = new System.Windows.Forms.FlowLayoutPanel();
			this.nudHours = new System.Windows.Forms.NumericUpDown();
			this.label1 = new System.Windows.Forms.Label();
			this.nudMinutes = new System.Windows.Forms.NumericUpDown();
			this.label2 = new System.Windows.Forms.Label();
			this.chkNull = new System.Windows.Forms.CheckBox();
			this.flpMain.SuspendLayout();
			this.flpDuration.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.nudHours)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.nudMinutes)).BeginInit();
			this.SuspendLayout();
			// 
			// flpMain
			// 
			this.flpMain.AutoSize = true;
			this.flpMain.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			this.flpMain.Controls.Add(this.flpDuration);
			this.flpMain.Controls.Add(this.chkNull);
			this.flpMain.Location = new System.Drawing.Point(0, 0);
			this.flpMain.Margin = new System.Windows.Forms.Padding(0);
			this.flpMain.Name = "flpMain";
			this.flpMain.Size = new System.Drawing.Size(261, 20);
			this.flpMain.TabIndex = 0;
			this.flpMain.WrapContents = false;
			// 
			// flpDuration
			// 
			this.flpDuration.AutoSize = true;
			this.flpDuration.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			this.flpDuration.Controls.Add(this.nudHours);
			this.flpDuration.Controls.Add(this.label1);
			this.flpDuration.Controls.Add(this.nudMinutes);
			this.flpDuration.Controls.Add(this.label2);
			this.flpDuration.Location = new System.Drawing.Point(0, 0);
			this.flpDuration.Margin = new System.Windows.Forms.Padding(0);
			this.flpDuration.Name = "flpDuration";
			this.flpDuration.Size = new System.Drawing.Size(202, 20);
			this.flpDuration.TabIndex = 0;
			// 
			// nudHours
			// 
			this.nudHours.Location = new System.Drawing.Point(0, 0);
			this.nudHours.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0);
			this.nudHours.Maximum = new decimal(new int[] {
            99,
            0,
            0,
            0});
			this.nudHours.Name = "nudHours";
			this.nudHours.Size = new System.Drawing.Size(50, 20);
			this.nudHours.TabIndex = 0;
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Dock = System.Windows.Forms.DockStyle.Left;
			this.label1.Location = new System.Drawing.Point(53, 0);
			this.label1.Margin = new System.Windows.Forms.Padding(0, 0, 5, 0);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(39, 20);
			this.label1.TabIndex = 1;
			this.label1.Text = "hour(s)";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// nudMinutes
			// 
			this.nudMinutes.Location = new System.Drawing.Point(100, 0);
			this.nudMinutes.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0);
			this.nudMinutes.Maximum = new decimal(new int[] {
            59,
            0,
            0,
            0});
			this.nudMinutes.Name = "nudMinutes";
			this.nudMinutes.Size = new System.Drawing.Size(50, 20);
			this.nudMinutes.TabIndex = 2;
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Dock = System.Windows.Forms.DockStyle.Left;
			this.label2.Location = new System.Drawing.Point(153, 0);
			this.label2.Margin = new System.Windows.Forms.Padding(0);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(49, 20);
			this.label2.TabIndex = 3;
			this.label2.Text = "minute(s)";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// chkNull
			// 
			this.chkNull.AutoSize = true;
			this.chkNull.FlatStyle = System.Windows.Forms.FlatStyle.System;
			this.chkNull.Location = new System.Drawing.Point(212, 2);
			this.chkNull.Margin = new System.Windows.Forms.Padding(10, 2, 0, 0);
			this.chkNull.Name = "chkNull";
			this.chkNull.Size = new System.Drawing.Size(49, 18);
			this.chkNull.TabIndex = 1;
			this.chkNull.Text = "n/a";
			this.chkNull.UseVisualStyleBackColor = true;
			this.chkNull.CheckedChanged += new System.EventHandler(this.chkNull_CheckedChanged);
			// 
			// DurationControl
			// 
			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.Controls.Add(this.flpMain);
			this.Name = "DurationControl";
			this.Size = new System.Drawing.Size(261, 20);
			this.flpMain.ResumeLayout(false);
			this.flpMain.PerformLayout();
			this.flpDuration.ResumeLayout(false);
			this.flpDuration.PerformLayout();
			((System.ComponentModel.ISupportInitialize)(this.nudHours)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.nudMinutes)).EndInit();
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.FlowLayoutPanel flpMain;
		private System.Windows.Forms.NumericUpDown nudHours;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.NumericUpDown nudMinutes;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.CheckBox chkNull;
		private System.Windows.Forms.FlowLayoutPanel flpDuration;
	}
}

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).

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160426.1 | Last Updated 25 Mar 2008
Article Copyright 2007 by Matt Sollars
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid