Click here to Skip to main content
15,886,199 members
Articles / Programming Languages / SQL

A Helpful Database Library

Rate me:
Please Sign up or sign in to vote.
2.75/5 (4 votes)
6 Dec 20065 min read 49.5K   704   26  
This article illustrates a helpful database library.
using Settings = LDC_10.Properties.Settings;

namespace LDC_10
{
    internal partial class Setup
    {
        /// <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.txtDirMon = new System.Windows.Forms.TextBox();
            this.dirBrowse = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.txtData = new System.Windows.Forms.TextBox();
            this.dataSel = new System.Windows.Forms.Button();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.rdoYes = new System.Windows.Forms.RadioButton();
            this.rdoNo = new System.Windows.Forms.RadioButton();
            this.txtXML = new System.Windows.Forms.TextBox();
            this.xmlBrowse = new System.Windows.Forms.Button();
            this.btnSave = new System.Windows.Forms.Button();
            this.btnCancel = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(12, 18);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(135, 13);
            this.label1.TabIndex = 0;
            this.label1.Text = "Select Directory to Monitor:";
            // 
            // txtDirMon
            // 
            this.txtDirMon.Location = new System.Drawing.Point(12, 34);
            this.txtDirMon.Name = "txtDirMon";
            this.txtDirMon.Size = new System.Drawing.Size(214, 20);
            this.txtDirMon.TabIndex = 1;
            this.txtDirMon.Text = Settings.Default.DirMonitor;
            // 
            // dirBrowse
            // 
            this.dirBrowse.Location = new System.Drawing.Point(232, 34);
            this.dirBrowse.Name = "dirBrowse";
            this.dirBrowse.Size = new System.Drawing.Size(75, 23);
            this.dirBrowse.TabIndex = 2;
            this.dirBrowse.Text = "Browse";
            this.dirBrowse.UseVisualStyleBackColor = true;
            this.dirBrowse.Click += new System.EventHandler(this.dirBrowse_Click);
            // 
            // label2
            // 
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(12, 76);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(114, 13);
            this.label2.TabIndex = 3;
            this.label2.Text = "Select Data Container:";
            // 
            // txtData
            // 
            this.txtData.Location = new System.Drawing.Point(12, 93);
            this.txtData.Name = "txtData";
            this.txtData.Size = new System.Drawing.Size(214, 20);
            this.txtData.TabIndex = 4;
            this.txtData.Text = Settings.Default.ConnString;
            // 
            // dataSel
            // 
            this.dataSel.Location = new System.Drawing.Point(232, 93);
            this.dataSel.Name = "dataSel";
            this.dataSel.Size = new System.Drawing.Size(75, 23);
            this.dataSel.TabIndex = 5;
            this.dataSel.Text = "Browse";
            this.dataSel.UseVisualStyleBackColor = true;
            this.dataSel.Click += new System.EventHandler(this.dataSel_Click);
            // 
            // label3
            // 
            this.label3.AutoSize = true;
            this.label3.Location = new System.Drawing.Point(12, 200);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(169, 13);
            this.label3.TabIndex = 6;
            this.label3.Text = "Select Directory to save XML files:";
            // 
            // label4
            // 
            this.label4.AutoSize = true;
            this.label4.Location = new System.Drawing.Point(15, 131);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(90, 13);
            this.label4.TabIndex = 7;
            this.label4.Text = "Create XML Files:";
            // 
            // rdoYes
            // 
            this.rdoYes.AutoSize = true;
            this.rdoYes.Checked = true;
            this.rdoYes.Location = new System.Drawing.Point(18, 160);
            this.rdoYes.Name = "rdoYes";
            this.rdoYes.Size = new System.Drawing.Size(43, 17);
            this.rdoYes.TabIndex = 8;
            this.rdoYes.TabStop = true;
            this.rdoYes.Text = "Yes";
            this.rdoYes.UseVisualStyleBackColor = true;
            this.rdoYes.CheckedChanged += new System.EventHandler(this.rdoYes_CheckedChanged);
            this.rdoYes.Checked = Settings.Default.CreateXML;
            // 
            // rdoNo
            // 
            this.rdoNo.AutoSize = true;
            this.rdoNo.Location = new System.Drawing.Point(67, 160);
            this.rdoNo.Name = "rdoNo";
            this.rdoNo.Size = new System.Drawing.Size(39, 17);
            this.rdoNo.TabIndex = 9;
            this.rdoNo.Text = "No";
            this.rdoNo.UseVisualStyleBackColor = true;
            this.rdoNo.CheckedChanged += new System.EventHandler(this.rdoNo_CheckedChanged);
            //this.rdoNo.Checked = (Settings.Default.CreateXML * true);
            // 
            // txtXML
            // 
            this.txtXML.Location = new System.Drawing.Point(12, 216);
            this.txtXML.Name = "txtXML";
            this.txtXML.Size = new System.Drawing.Size(214, 20);
            this.txtXML.TabIndex = 10;
            this.txtXML.Text = Settings.Default.XMLDir;
            // 
            // xmlBrowse
            // 
            this.xmlBrowse.Location = new System.Drawing.Point(233, 216);
            this.xmlBrowse.Name = "xmlBrowse";
            this.xmlBrowse.Size = new System.Drawing.Size(75, 23);
            this.xmlBrowse.TabIndex = 11;
            this.xmlBrowse.Text = "Browse";
            this.xmlBrowse.UseVisualStyleBackColor = true;
            this.xmlBrowse.Click += new System.EventHandler(this.xmlBrowse_Click);
            // 
            // btnSave
            // 
            this.btnSave.Location = new System.Drawing.Point(12, 263);
            this.btnSave.Name = "btnSave";
            this.btnSave.Size = new System.Drawing.Size(75, 23);
            this.btnSave.TabIndex = 12;
            this.btnSave.Text = "Save";
            this.btnSave.UseVisualStyleBackColor = true;
            this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
            // 
            // btnCancel
            // 
            this.btnCancel.Location = new System.Drawing.Point(94, 262);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(75, 23);
            this.btnCancel.TabIndex = 13;
            this.btnCancel.Text = "Cancel";
            this.btnCancel.UseVisualStyleBackColor = true;
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
            // 
            // Setup
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(332, 306);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.btnSave);
            this.Controls.Add(this.xmlBrowse);
            this.Controls.Add(this.txtXML);
            this.Controls.Add(this.rdoNo);
            this.Controls.Add(this.rdoYes);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.dataSel);
            this.Controls.Add(this.txtData);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.dirBrowse);
            this.Controls.Add(this.txtDirMon);
            this.Controls.Add(this.label1);
            this.Icon = global::LDC_10.Properties.Resources.CNFNOT;
            this.MaximizeBox = false;
            this.MaximumSize = new System.Drawing.Size(340, 340);
            this.MinimizeBox = false;
            this.MinimumSize = new System.Drawing.Size(340, 340);
            this.Name = "Setup";
            this.Text = "LDC-10 Setup";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox txtDirMon;
        private System.Windows.Forms.Button dirBrowse;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.TextBox txtData;
        private System.Windows.Forms.Button dataSel;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.RadioButton rdoYes;
        private System.Windows.Forms.RadioButton rdoNo;
        private System.Windows.Forms.TextBox txtXML;
        private System.Windows.Forms.Button xmlBrowse;
        private System.Windows.Forms.Button btnSave;
        private System.Windows.Forms.Button btnCancel;
    }
}

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 am a software, database, and gis developer. I love the challenge of learning new ways to code.

Comments and Discussions