Click here to Skip to main content
15,881,139 members
Articles / Database Development / SQL Server / SQL Server 2008

Architecture Guide: Windows Forms, Generics, Auto-Mapper, Entity Framework, Framework Design, and many more..

Rate me:
Please Sign up or sign in to vote.
4.93/5 (39 votes)
12 Dec 2013CPOL15 min read 140.9K   3.8K   175  
Architecting a Windows Forms based system on top of a framework. This will help you develop a form based application faster.
namespace Demo.Customer.ChildControls
{
    partial class BuyerCodeData
    {
        /// <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.components = new System.ComponentModel.Container();
            System.Windows.Forms.Label buyerCodeLabel;
            System.Windows.Forms.Label buyerNumberLabel;
            this.buyerCodeViewBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.buyerCodeTextBox = new System.Windows.Forms.TextBox();
            this.buyerNumberTextBox = new System.Windows.Forms.TextBox();
            buyerCodeLabel = new System.Windows.Forms.Label();
            buyerNumberLabel = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.buyerCodeViewBindingSource)).BeginInit();
            this.SuspendLayout();
            // 
            // buyerCodeViewBindingSource
            // 
            this.buyerCodeViewBindingSource.DataSource = typeof(Demo.Customer.Models.BuyerCodeView);
            // 
            // buyerCodeLabel
            // 
            buyerCodeLabel.AutoSize = true;
            buyerCodeLabel.Location = new System.Drawing.Point(3, 9);
            buyerCodeLabel.Name = "buyerCodeLabel";
            buyerCodeLabel.Size = new System.Drawing.Size(65, 13);
            buyerCodeLabel.TabIndex = 1;
            buyerCodeLabel.Text = "Buyer Code:";
            // 
            // buyerCodeTextBox
            // 
            this.buyerCodeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.buyerCodeViewBindingSource, "BuyerCode", true));
            this.buyerCodeTextBox.Location = new System.Drawing.Point(86, 6);
            this.buyerCodeTextBox.Name = "buyerCodeTextBox";
            this.buyerCodeTextBox.Size = new System.Drawing.Size(100, 20);
            this.buyerCodeTextBox.TabIndex = 2;
            // 
            // buyerNumberLabel
            // 
            buyerNumberLabel.AutoSize = true;
            buyerNumberLabel.Location = new System.Drawing.Point(224, 9);
            buyerNumberLabel.Name = "buyerNumberLabel";
            buyerNumberLabel.Size = new System.Drawing.Size(77, 13);
            buyerNumberLabel.TabIndex = 3;
            buyerNumberLabel.Text = "Buyer Number:";
            // 
            // buyerNumberTextBox
            // 
            this.buyerNumberTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.buyerCodeViewBindingSource, "BuyerNumber", true));
            this.buyerNumberTextBox.Location = new System.Drawing.Point(307, 6);
            this.buyerNumberTextBox.Name = "buyerNumberTextBox";
            this.buyerNumberTextBox.Size = new System.Drawing.Size(100, 20);
            this.buyerNumberTextBox.TabIndex = 4;
            // 
            // BuyerCodeData
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(buyerCodeLabel);
            this.Controls.Add(this.buyerCodeTextBox);
            this.Controls.Add(buyerNumberLabel);
            this.Controls.Add(this.buyerNumberTextBox);
            this.Name = "BuyerCodeData";
            this.Size = new System.Drawing.Size(453, 39);
            ((System.ComponentModel.ISupportInitialize)(this.buyerCodeViewBindingSource)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.BindingSource buyerCodeViewBindingSource;
        private System.Windows.Forms.TextBox buyerCodeTextBox;
        private System.Windows.Forms.TextBox buyerNumberTextBox;
    }
}

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)


Written By
Architect Virtusa Pvt. Ltd.
Sri Lanka Sri Lanka
In-depth coverage of Microsoft .Net, Cloud and many other cutting-edge Technologies.

- The Mandelbrot set – someone has called it the thumb-print of God – is one of the most beautiful and remarkable discoveries in the entire history of mathematics. My profile picture is generated with that equation.

You may contact Nirosh for Consultations, Code Reviews and Architecture Guide Workshops via c_nir*o*sh@hotmail.com (Remove * to use)



View Nirosh L.W.C.'s profile on LinkedIn


Other Links

Comments and Discussions