using System.Data.Linq;using System.Text;using System.Windows.Forms;namespace Presentation{ public partial class ItemDiscountUI : UserControl { public ItemDiscountUI() { InitializeComponent(); } }}namespace Presentation{ partial class ItemDiscountUI { /// <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.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.lblUITitle = new System.Windows.Forms.Label(); //Repeat one for each control pair per column this.cboItemId = new System.Windows.Forms.ComboBox(); this.lblItemId = new System.Windows.Forms.Label(); this.cboDiscountId = new System.Windows.Forms.ComboBox(); this.lblDiscountId = new System.Windows.Forms.Label(); this.txtQuantity = new System.Windows.Forms.TextBox(); this.lblQuantity = new System.Windows.Forms.Label(); this.txtId = new System.Windows.Forms.TextBox(); this.lblId = new System.Windows.Forms.Label(); this.tableLayoutPanel1.SuspendLayout(); this.SuspendLayout(); this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.Controls.Add(this.lblUITitle, 0, 0); this.tableLayoutPanel1.Controls.Add(this.lblItemId, 0, 1); this.tableLayoutPanel1.Controls.Add(this.cboItemId, 1, 1); this.tableLayoutPanel1.Controls.Add(this.lblDiscountId, 0, 2); this.tableLayoutPanel1.Controls.Add(this.cboDiscountId, 1, 2); this.tableLayoutPanel1.Controls.Add(this.lblQuantity, 0, 3); this.tableLayoutPanel1.Controls.Add(this.txtQuantity, 1, 3); this.tableLayoutPanel1.Controls.Add(this.lblId, 0, 4); this.tableLayoutPanel1.Controls.Add(this.txtId, 1, 4); this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 4; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(200, 100); this.tableLayoutPanel1.TabIndex = 0; this.cboItemId.Name = "cboItemId"; this.cboItemId.TabIndex = 1; this.lblItemId.AutoSize = true; this.lblItemId.Name = "ItemId"; this.lblItemId.Text = "ItemId"; this.cboDiscountId.Name = "cboDiscountId"; this.cboDiscountId.TabIndex = 1; this.lblDiscountId.AutoSize = true; this.lblDiscountId.Name = "DiscountId"; this.lblDiscountId.Text = "DiscountId"; this.txtQuantity.Name = "txtQuantity"; this.txtQuantity.TabIndex = 1; this.lblQuantity.AutoSize = true; this.lblQuantity.Name = "Quantity"; this.lblQuantity.Text = "Quantity"; this.txtId.Name = "txtId"; this.txtId.TabIndex = 1; this.lblId.AutoSize = true; this.lblId.Name = "Id"; this.lblId.Text = "Id"; // // UserControlTemplate // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.tableLayoutPanel1); this.Name = "ItemDiscountUI"; this.Size = new System.Drawing.Size(349, 214); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.Label lblUITitle; //[BusinessEntity("cboItemId", "SelectedValue")] private System.Windows.Forms.ComboBox cboItemId; //[BusinessEntity("cboDiscountId", "SelectedValue")] private System.Windows.Forms.ComboBox cboDiscountId; //[BusinessEntity("txtQuantity", "Text")] private System.Windows.Forms.TextBox txtQuantity; //[BusinessEntity("txtId", "Text")] private System.Windows.Forms.TextBox txtId; private System.Windows.Forms.Label lblItemId; private System.Windows.Forms.Label lblDiscountId; private System.Windows.Forms.Label lblQuantity; private System.Windows.Forms.Label lblId; }}