Click here to Skip to main content
15,881,898 members
Articles / Desktop Programming / Windows Forms

Code First: A Practical Case

Rate me:
Please Sign up or sign in to vote.
4.89/5 (19 votes)
26 Feb 2012CPOL15 min read 72K   3.7K   67  
A code first real life data model case
namespace Xah.MediaCataloger
{
    partial class ProcessFoldersForm
    {
        /// <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.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProcessFoldersForm));
            this.fileProcessingLabel = new System.Windows.Forms.Label();
            this.folderLabel = new System.Windows.Forms.Label();
            this.folderTaskProgressBar = new System.Windows.Forms.ProgressBar();
            this.fileProcessingProgressBar = new System.Windows.Forms.ProgressBar();
            this.taskLabel = new System.Windows.Forms.Label();
            this.progressImageList = new System.Windows.Forms.ImageList(this.components);
            this.progressListView = new DoubleBufferedListView();
            this.chMessage = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
            this.cancelCloseButton = new System.Windows.Forms.Button();
            this.workingPictureBox = new System.Windows.Forms.PictureBox();
            this.pictureBox1 = new System.Windows.Forms.PictureBox();
            ((System.ComponentModel.ISupportInitialize)(this.workingPictureBox)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
            this.SuspendLayout();
            // 
            // fileProcessingLabel
            // 
            this.fileProcessingLabel.AutoSize = true;
            this.fileProcessingLabel.Location = new System.Drawing.Point(13, 69);
            this.fileProcessingLabel.Name = "fileProcessingLabel";
            this.fileProcessingLabel.Size = new System.Drawing.Size(23, 13);
            this.fileProcessingLabel.TabIndex = 3;
            this.fileProcessingLabel.Text = "File";
            // 
            // folderLabel
            // 
            this.folderLabel.AutoSize = true;
            this.folderLabel.Location = new System.Drawing.Point(12, 21);
            this.folderLabel.Name = "folderLabel";
            this.folderLabel.Size = new System.Drawing.Size(36, 13);
            this.folderLabel.TabIndex = 0;
            this.folderLabel.Text = "Folder";
            // 
            // folderTaskProgressBar
            // 
            this.folderTaskProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.folderTaskProgressBar.Location = new System.Drawing.Point(15, 37);
            this.folderTaskProgressBar.Name = "folderTaskProgressBar";
            this.folderTaskProgressBar.Size = new System.Drawing.Size(447, 18);
            this.folderTaskProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
            this.folderTaskProgressBar.TabIndex = 1;
            // 
            // fileProcessingProgressBar
            // 
            this.fileProcessingProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.fileProcessingProgressBar.Location = new System.Drawing.Point(15, 85);
            this.fileProcessingProgressBar.Name = "fileProcessingProgressBar";
            this.fileProcessingProgressBar.Size = new System.Drawing.Size(447, 18);
            this.fileProcessingProgressBar.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
            this.fileProcessingProgressBar.TabIndex = 2;
            // 
            // taskLabel
            // 
            this.taskLabel.AutoSize = true;
            this.taskLabel.Location = new System.Drawing.Point(245, 21);
            this.taskLabel.Name = "taskLabel";
            this.taskLabel.Size = new System.Drawing.Size(31, 13);
            this.taskLabel.TabIndex = 4;
            this.taskLabel.Text = "Task";
            // 
            // progressImageList
            // 
            this.progressImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("progressImageList.ImageStream")));
            this.progressImageList.TransparentColor = System.Drawing.Color.Transparent;
            this.progressImageList.Images.SetKeyName(0, "folder-explore_16.png");
            this.progressImageList.Images.SetKeyName(1, "file_16.png");
            // 
            // progressListView
            // 
            this.progressListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.progressListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
            this.chMessage});
            this.progressListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
            this.progressListView.Location = new System.Drawing.Point(16, 122);
            this.progressListView.Name = "progressListView";
            this.progressListView.Size = new System.Drawing.Size(446, 171);
            this.progressListView.SmallImageList = this.progressImageList;
            this.progressListView.TabIndex = 5;
            this.progressListView.UseCompatibleStateImageBehavior = false;
            this.progressListView.View = System.Windows.Forms.View.Details;
            this.progressListView.Resize += new System.EventHandler(this.progressListView_Resize);
            // 
            // chMessage
            // 
            this.chMessage.Text = "Message";
            this.chMessage.Width = 350;
            // 
            // cancelCloseButton
            // 
            this.cancelCloseButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.cancelCloseButton.Cursor = System.Windows.Forms.Cursors.Arrow;
            this.cancelCloseButton.Location = new System.Drawing.Point(387, 309);
            this.cancelCloseButton.Name = "cancelCloseButton";
            this.cancelCloseButton.Size = new System.Drawing.Size(75, 24);
            this.cancelCloseButton.TabIndex = 7;
            this.cancelCloseButton.Text = "Cancel";
            this.cancelCloseButton.UseVisualStyleBackColor = true;
            this.cancelCloseButton.Click += new System.EventHandler(this.cancelCloseButton_Click);
            // 
            // workingPictureBox
            // 
            this.workingPictureBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.workingPictureBox.Image = global::Xah.MediaCataloger.Properties.Resources.AjaxLoaderAnimation;
            this.workingPictureBox.Location = new System.Drawing.Point(54, 305);
            this.workingPictureBox.Name = "workingPictureBox";
            this.workingPictureBox.Size = new System.Drawing.Size(32, 32);
            this.workingPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
            this.workingPictureBox.TabIndex = 8;
            this.workingPictureBox.TabStop = false;
            // 
            // pictureBox1
            // 
            this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.pictureBox1.Image = global::Xah.MediaCataloger.Properties.Resources.Folder_24;
            this.pictureBox1.Location = new System.Drawing.Point(15, 309);
            this.pictureBox1.Name = "pictureBox1";
            this.pictureBox1.Size = new System.Drawing.Size(24, 24);
            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
            this.pictureBox1.TabIndex = 6;
            this.pictureBox1.TabStop = false;
            // 
            // ProcessFoldersForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(474, 345);
            this.ControlBox = false;
            this.Controls.Add(this.workingPictureBox);
            this.Controls.Add(this.cancelCloseButton);
            this.Controls.Add(this.pictureBox1);
            this.Controls.Add(this.progressListView);
            this.Controls.Add(this.taskLabel);
            this.Controls.Add(this.fileProcessingLabel);
            this.Controls.Add(this.fileProcessingProgressBar);
            this.Controls.Add(this.folderTaskProgressBar);
            this.Controls.Add(this.folderLabel);
            this.Cursor = System.Windows.Forms.Cursors.AppStarting;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.MinimumSize = new System.Drawing.Size(482, 374);
            this.Name = "ProcessFoldersForm";
            this.ShowIcon = false;
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Manage Folders - Process Folders";
            this.Load += new System.EventHandler(this.ProcessFoldersForm_Load);
            ((System.ComponentModel.ISupportInitialize)(this.workingPictureBox)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label folderLabel;
        private System.Windows.Forms.ProgressBar folderTaskProgressBar;
        private System.Windows.Forms.ProgressBar fileProcessingProgressBar;
        private System.Windows.Forms.Label taskLabel;
        private System.Windows.Forms.ImageList progressImageList;
        private DoubleBufferedListView progressListView;
        private System.Windows.Forms.PictureBox pictureBox1;
        private System.Windows.Forms.ColumnHeader chMessage;
        private System.Windows.Forms.Button cancelCloseButton;
        private System.Windows.Forms.PictureBox workingPictureBox;
        private System.Windows.Forms.Label fileProcessingLabel;
    }
}

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
Software Developer (Senior)
Spain Spain
I studied Telecommunication with spezialization in Sound & Image. I was always very interested in programming at university as well and that is how I earn a living.

Since some years ago, I am also succesfully involved in software architecture and design.

Comments and Discussions