Click here to Skip to main content
15,886,873 members
Articles / Programming Languages / C#

Utilizing Microsoft's Object Builder to Create Custom Objects Based on the Dependency Injection Patt

Rate me:
Please Sign up or sign in to vote.
3.52/5 (9 votes)
24 Apr 20077 min read 40K   155   26  
An article describing the utilization of the Object Builder framework to develop custom objects for dependency injection.
namespace ObjectBuilderDemo
{
    partial class Form1
    {
        /// <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.btnGreet = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // btnGreet
            // 
            this.btnGreet.Location = new System.Drawing.Point(79, 33);
            this.btnGreet.Name = "btnGreet";
            this.btnGreet.Size = new System.Drawing.Size(124, 23);
            this.btnGreet.TabIndex = 0;
            this.btnGreet.Text = "Repeat Order";
            this.btnGreet.UseVisualStyleBackColor = true;
            this.btnGreet.Click += new System.EventHandler(this.btnGreet_Click);
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(292, 90);
            this.Controls.Add(this.btnGreet);
            this.Name = "Form1";
            this.Text = "Welcome To Fat Burgers";
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Button btnGreet;
    }
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
I work as a systems analyst for a large financial services organization. I have experience in a broad range of technologies but specialize in C#, VB, ASP, and Oracle PL/SQL and Java development.

Comments and Discussions