Click here to Skip to main content
15,896,063 members
Articles / Programming Languages / C#

An Extension to the Enterprise Library Logging Application Block

Rate me:
Please Sign up or sign in to vote.
4.76/5 (18 votes)
28 Oct 200612 min read 73.2K   1.5K   51  
Provide more control over logging by extending the Enterprise Library Logging Application Block.
namespace EntLibLoggingExQuickStart
{
    partial class EventInformationForm
    {
        /// <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.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.messageTextbox = new System.Windows.Forms.TextBox();
            this.OkButton = new System.Windows.Forms.Button();
            this.CancelEntryButton = new System.Windows.Forms.Button();
            this.eventIdTextBox = new System.Windows.Forms.TextBox();
            this.groupBoxCategories = new System.Windows.Forms.GroupBox();
            this.categoryUiCheckbox = new System.Windows.Forms.CheckBox();
            this.categoryServiceCheckbox = new System.Windows.Forms.CheckBox();
            this.categorySecurityCheckbox = new System.Windows.Forms.CheckBox();
            this.categoryBusinessCheckbox = new System.Windows.Forms.CheckBox();
            this.categoryDataAccessCheckbox = new System.Windows.Forms.CheckBox();
            this.categoryAssertCheckbox = new System.Windows.Forms.CheckBox();
            this.categoryGeneralCheckbox = new System.Windows.Forms.CheckBox();
            this.categoryDebugCheckbox = new System.Windows.Forms.CheckBox();
            this.categoryTraceCheckBox = new System.Windows.Forms.CheckBox();
            this.groupBoxPriority = new System.Windows.Forms.GroupBox();
            this.priorityTraceRadioButton = new System.Windows.Forms.RadioButton();
            this.priorityDebugRadioButton = new System.Windows.Forms.RadioButton();
            this.priorityLowRadioButton = new System.Windows.Forms.RadioButton();
            this.priorityMediumRadioButton = new System.Windows.Forms.RadioButton();
            this.priorityHighRadioButton = new System.Windows.Forms.RadioButton();
            this.priorityCriticalRadioButton = new System.Windows.Forms.RadioButton();
            this.groupBoxCategories.SuspendLayout();
            this.groupBoxPriority.SuspendLayout();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(9, 8);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(137, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Enter the event information.";
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(13, 39);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(98, 13);
            this.label2.TabIndex = 1;
            this.label2.Text = "Event ID (numeric):";
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(12, 71);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(84, 13);
            this.label3.TabIndex = 3;
            this.label3.Text = "Event Message:";
            // 
            // messageTextbox
            // 
            this.messageTextbox.Location = new System.Drawing.Point(109, 68);
            this.messageTextbox.Multiline = true;
            this.messageTextbox.Name = "messageTextbox";
            this.messageTextbox.Size = new System.Drawing.Size(181, 54);
            this.messageTextbox.TabIndex = 4;
            // 
            // OkButton
            // 
            this.OkButton.Location = new System.Drawing.Point(78, 336);
            this.OkButton.Name = "OkButton";
            this.OkButton.Size = new System.Drawing.Size(75, 23);
            this.OkButton.TabIndex = 7;
            this.OkButton.Text = "OK";
            this.OkButton.UseVisualStyleBackColor = true;
            this.OkButton.Click += new System.EventHandler(this.OkButton_Click);
            // 
            // CancelEntryButton
            // 
            this.CancelEntryButton.Location = new System.Drawing.Point(171, 336);
            this.CancelEntryButton.Name = "CancelEntryButton";
            this.CancelEntryButton.Size = new System.Drawing.Size(75, 23);
            this.CancelEntryButton.TabIndex = 8;
            this.CancelEntryButton.Text = "Cancel";
            this.CancelEntryButton.UseVisualStyleBackColor = true;
            this.CancelEntryButton.Click += new System.EventHandler(this.CancelButton_Click);
            // 
            // eventIdTextBox
            // 
            this.eventIdTextBox.Location = new System.Drawing.Point(109, 36);
            this.eventIdTextBox.Name = "eventIdTextBox";
            this.eventIdTextBox.Size = new System.Drawing.Size(44, 20);
            this.eventIdTextBox.TabIndex = 2;
            // 
            // groupBoxCategories
            // 
            this.groupBoxCategories.Controls.Add(this.categoryUiCheckbox);
            this.groupBoxCategories.Controls.Add(this.categoryServiceCheckbox);
            this.groupBoxCategories.Controls.Add(this.categorySecurityCheckbox);
            this.groupBoxCategories.Controls.Add(this.categoryBusinessCheckbox);
            this.groupBoxCategories.Controls.Add(this.categoryDataAccessCheckbox);
            this.groupBoxCategories.Controls.Add(this.categoryAssertCheckbox);
            this.groupBoxCategories.Controls.Add(this.categoryGeneralCheckbox);
            this.groupBoxCategories.Controls.Add(this.categoryDebugCheckbox);
            this.groupBoxCategories.Controls.Add(this.categoryTraceCheckBox);
            this.groupBoxCategories.Location = new System.Drawing.Point(16, 233);
            this.groupBoxCategories.Name = "groupBoxCategories";
            this.groupBoxCategories.Size = new System.Drawing.Size(274, 94);
            this.groupBoxCategories.TabIndex = 6;
            this.groupBoxCategories.TabStop = false;
            this.groupBoxCategories.Text = "Categories";
            // 
            // categoryUiCheckbox
            // 
            this.categoryUiCheckbox.AutoSize = true;
            this.categoryUiCheckbox.Location = new System.Drawing.Point(184, 65);
            this.categoryUiCheckbox.Name = "categoryUiCheckbox";
            this.categoryUiCheckbox.Size = new System.Drawing.Size(37, 17);
            this.categoryUiCheckbox.TabIndex = 8;
            this.categoryUiCheckbox.Text = "UI";
            this.categoryUiCheckbox.UseVisualStyleBackColor = true;
            // 
            // categoryServiceCheckbox
            // 
            this.categoryServiceCheckbox.AutoSize = true;
            this.categoryServiceCheckbox.Location = new System.Drawing.Point(184, 19);
            this.categoryServiceCheckbox.Name = "categoryServiceCheckbox";
            this.categoryServiceCheckbox.Size = new System.Drawing.Size(62, 17);
            this.categoryServiceCheckbox.TabIndex = 6;
            this.categoryServiceCheckbox.Text = "Service";
            this.categoryServiceCheckbox.UseVisualStyleBackColor = true;
            // 
            // categorySecurityCheckbox
            // 
            this.categorySecurityCheckbox.AutoSize = true;
            this.categorySecurityCheckbox.Location = new System.Drawing.Point(108, 65);
            this.categorySecurityCheckbox.Name = "categorySecurityCheckbox";
            this.categorySecurityCheckbox.Size = new System.Drawing.Size(64, 17);
            this.categorySecurityCheckbox.TabIndex = 5;
            this.categorySecurityCheckbox.Text = "Security";
            this.categorySecurityCheckbox.UseVisualStyleBackColor = true;
            // 
            // categoryBusinessCheckbox
            // 
            this.categoryBusinessCheckbox.AutoSize = true;
            this.categoryBusinessCheckbox.Location = new System.Drawing.Point(12, 42);
            this.categoryBusinessCheckbox.Name = "categoryBusinessCheckbox";
            this.categoryBusinessCheckbox.Size = new System.Drawing.Size(68, 17);
            this.categoryBusinessCheckbox.TabIndex = 1;
            this.categoryBusinessCheckbox.Text = "Business";
            this.categoryBusinessCheckbox.UseVisualStyleBackColor = true;
            // 
            // categoryDataAccessCheckbox
            // 
            this.categoryDataAccessCheckbox.AutoSize = true;
            this.categoryDataAccessCheckbox.Location = new System.Drawing.Point(12, 65);
            this.categoryDataAccessCheckbox.Name = "categoryDataAccessCheckbox";
            this.categoryDataAccessCheckbox.Size = new System.Drawing.Size(87, 17);
            this.categoryDataAccessCheckbox.TabIndex = 2;
            this.categoryDataAccessCheckbox.Text = "Data Access";
            this.categoryDataAccessCheckbox.UseVisualStyleBackColor = true;
            // 
            // categoryAssertCheckbox
            // 
            this.categoryAssertCheckbox.AutoSize = true;
            this.categoryAssertCheckbox.Location = new System.Drawing.Point(12, 19);
            this.categoryAssertCheckbox.Name = "categoryAssertCheckbox";
            this.categoryAssertCheckbox.Size = new System.Drawing.Size(55, 17);
            this.categoryAssertCheckbox.TabIndex = 0;
            this.categoryAssertCheckbox.Text = "Assert";
            this.categoryAssertCheckbox.UseVisualStyleBackColor = true;
            // 
            // categoryGeneralCheckbox
            // 
            this.categoryGeneralCheckbox.AutoSize = true;
            this.categoryGeneralCheckbox.Location = new System.Drawing.Point(108, 42);
            this.categoryGeneralCheckbox.Name = "categoryGeneralCheckbox";
            this.categoryGeneralCheckbox.Size = new System.Drawing.Size(63, 17);
            this.categoryGeneralCheckbox.TabIndex = 4;
            this.categoryGeneralCheckbox.Text = "General";
            this.categoryGeneralCheckbox.UseVisualStyleBackColor = true;
            // 
            // categoryDebugCheckbox
            // 
            this.categoryDebugCheckbox.AutoSize = true;
            this.categoryDebugCheckbox.Location = new System.Drawing.Point(108, 19);
            this.categoryDebugCheckbox.Name = "categoryDebugCheckbox";
            this.categoryDebugCheckbox.Size = new System.Drawing.Size(58, 17);
            this.categoryDebugCheckbox.TabIndex = 3;
            this.categoryDebugCheckbox.Text = "Debug";
            this.categoryDebugCheckbox.UseVisualStyleBackColor = true;
            // 
            // categoryTraceCheckBox
            // 
            this.categoryTraceCheckBox.AutoSize = true;
            this.categoryTraceCheckBox.Location = new System.Drawing.Point(184, 42);
            this.categoryTraceCheckBox.Name = "categoryTraceCheckBox";
            this.categoryTraceCheckBox.Size = new System.Drawing.Size(54, 17);
            this.categoryTraceCheckBox.TabIndex = 7;
            this.categoryTraceCheckBox.Text = "Trace";
            this.categoryTraceCheckBox.UseVisualStyleBackColor = true;
            // 
            // groupBoxPriority
            // 
            this.groupBoxPriority.Controls.Add(this.priorityTraceRadioButton);
            this.groupBoxPriority.Controls.Add(this.priorityDebugRadioButton);
            this.groupBoxPriority.Controls.Add(this.priorityLowRadioButton);
            this.groupBoxPriority.Controls.Add(this.priorityMediumRadioButton);
            this.groupBoxPriority.Controls.Add(this.priorityHighRadioButton);
            this.groupBoxPriority.Controls.Add(this.priorityCriticalRadioButton);
            this.groupBoxPriority.Location = new System.Drawing.Point(16, 131);
            this.groupBoxPriority.Name = "groupBoxPriority";
            this.groupBoxPriority.Size = new System.Drawing.Size(274, 94);
            this.groupBoxPriority.TabIndex = 5;
            this.groupBoxPriority.TabStop = false;
            this.groupBoxPriority.Text = "Priority";
            // 
            // priorityTraceRadioButton
            // 
            this.priorityTraceRadioButton.AutoSize = true;
            this.priorityTraceRadioButton.Location = new System.Drawing.Point(108, 65);
            this.priorityTraceRadioButton.Name = "priorityTraceRadioButton";
            this.priorityTraceRadioButton.Size = new System.Drawing.Size(53, 17);
            this.priorityTraceRadioButton.TabIndex = 5;
            this.priorityTraceRadioButton.TabStop = true;
            this.priorityTraceRadioButton.Text = "Trace";
            this.priorityTraceRadioButton.UseVisualStyleBackColor = true;
            // 
            // priorityDebugRadioButton
            // 
            this.priorityDebugRadioButton.AutoSize = true;
            this.priorityDebugRadioButton.Location = new System.Drawing.Point(108, 42);
            this.priorityDebugRadioButton.Name = "priorityDebugRadioButton";
            this.priorityDebugRadioButton.Size = new System.Drawing.Size(57, 17);
            this.priorityDebugRadioButton.TabIndex = 4;
            this.priorityDebugRadioButton.TabStop = true;
            this.priorityDebugRadioButton.Text = "Debug";
            this.priorityDebugRadioButton.UseVisualStyleBackColor = true;
            // 
            // priorityLowRadioButton
            // 
            this.priorityLowRadioButton.AutoSize = true;
            this.priorityLowRadioButton.Location = new System.Drawing.Point(108, 19);
            this.priorityLowRadioButton.Name = "priorityLowRadioButton";
            this.priorityLowRadioButton.Size = new System.Drawing.Size(45, 17);
            this.priorityLowRadioButton.TabIndex = 3;
            this.priorityLowRadioButton.TabStop = true;
            this.priorityLowRadioButton.Text = "Low";
            this.priorityLowRadioButton.UseVisualStyleBackColor = true;
            // 
            // priorityMediumRadioButton
            // 
            this.priorityMediumRadioButton.AutoSize = true;
            this.priorityMediumRadioButton.Location = new System.Drawing.Point(12, 65);
            this.priorityMediumRadioButton.Name = "priorityMediumRadioButton";
            this.priorityMediumRadioButton.Size = new System.Drawing.Size(62, 17);
            this.priorityMediumRadioButton.TabIndex = 2;
            this.priorityMediumRadioButton.TabStop = true;
            this.priorityMediumRadioButton.Text = "Medium";
            this.priorityMediumRadioButton.UseVisualStyleBackColor = true;
            // 
            // priorityHighRadioButton
            // 
            this.priorityHighRadioButton.AutoSize = true;
            this.priorityHighRadioButton.Location = new System.Drawing.Point(12, 42);
            this.priorityHighRadioButton.Name = "priorityHighRadioButton";
            this.priorityHighRadioButton.Size = new System.Drawing.Size(47, 17);
            this.priorityHighRadioButton.TabIndex = 1;
            this.priorityHighRadioButton.TabStop = true;
            this.priorityHighRadioButton.Text = "High";
            this.priorityHighRadioButton.UseVisualStyleBackColor = true;
            // 
            // priorityCriticalRadioButton
            // 
            this.priorityCriticalRadioButton.AutoSize = true;
            this.priorityCriticalRadioButton.Location = new System.Drawing.Point(12, 19);
            this.priorityCriticalRadioButton.Name = "priorityCriticalRadioButton";
            this.priorityCriticalRadioButton.Size = new System.Drawing.Size(56, 17);
            this.priorityCriticalRadioButton.TabIndex = 0;
            this.priorityCriticalRadioButton.Text = "Critical";
            this.priorityCriticalRadioButton.UseVisualStyleBackColor = true;
            // 
            // EventInformationForm
            // 
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
            this.ClientSize = new System.Drawing.Size(316, 368);
            this.Controls.Add(this.groupBoxPriority);
            this.Controls.Add(this.groupBoxCategories);
            this.Controls.Add(this.eventIdTextBox);
            this.Controls.Add(this.CancelEntryButton);
            this.Controls.Add(this.OkButton);
            this.Controls.Add(this.messageTextbox);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "EventInformationForm";
            this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
            this.Text = "Event Information";
            this.Load += new System.EventHandler(this.EventInformationForm_Load);
            this.groupBoxCategories.ResumeLayout(false);
            this.groupBoxCategories.PerformLayout();
            this.groupBoxPriority.ResumeLayout(false);
            this.groupBoxPriority.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.TextBox messageTextbox;
        private System.Windows.Forms.Button OkButton;
        private System.Windows.Forms.Button CancelEntryButton;
      private System.Windows.Forms.TextBox eventIdTextBox;
        private System.Windows.Forms.GroupBox groupBoxCategories;
        private System.Windows.Forms.CheckBox categoryBusinessCheckbox;
        private System.Windows.Forms.CheckBox categoryDataAccessCheckbox;
        private System.Windows.Forms.CheckBox categoryAssertCheckbox;
        private System.Windows.Forms.CheckBox categoryGeneralCheckbox;
        private System.Windows.Forms.CheckBox categoryDebugCheckbox;
        private System.Windows.Forms.CheckBox categoryTraceCheckBox;
        private System.Windows.Forms.CheckBox categorySecurityCheckbox;
        private System.Windows.Forms.CheckBox categoryServiceCheckbox;
        private System.Windows.Forms.CheckBox categoryUiCheckbox;
        private System.Windows.Forms.GroupBox groupBoxPriority;
        private System.Windows.Forms.RadioButton priorityTraceRadioButton;
        private System.Windows.Forms.RadioButton priorityDebugRadioButton;
        private System.Windows.Forms.RadioButton priorityLowRadioButton;
        private System.Windows.Forms.RadioButton priorityMediumRadioButton;
        private System.Windows.Forms.RadioButton priorityHighRadioButton;
        private System.Windows.Forms.RadioButton priorityCriticalRadioButton;
    }
}

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
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions