Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Dealing with Progressive Operations

, 10 May 2010
Through a clean OOP solution to deal with progressive operations, I will implicitly show you how OOP principles can work together to make a full, clean solution.
namespace OneThreadSamples
{
    partial class frmMain
    {
        /// <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.mainMenu = new System.Windows.Forms.MenuStrip();
            this.mnuFile = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuFileOpen = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
            this.mnuFileExit = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuEffects = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuEffectsNegative = new System.Windows.Forms.ToolStripMenuItem();
            this.mnuEffectsGray = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
            this.mnuEffectsAllEffects = new System.Windows.Forms.ToolStripMenuItem();
            this.pct = new System.Windows.Forms.PictureBox();
            this.dlg = new System.Windows.Forms.OpenFileDialog();
            this.mainMenu.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pct)).BeginInit();
            this.SuspendLayout();
            // 
            // mainMenu
            // 
            this.mainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mnuFile,
            this.mnuEffects});
            this.mainMenu.Location = new System.Drawing.Point(0, 0);
            this.mainMenu.Name = "mainMenu";
            this.mainMenu.Size = new System.Drawing.Size(594, 24);
            this.mainMenu.TabIndex = 0;
            this.mainMenu.Text = "menuStrip1";
            // 
            // mnuFile
            // 
            this.mnuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mnuFileOpen,
            this.toolStripMenuItem1,
            this.mnuFileExit});
            this.mnuFile.Name = "mnuFile";
            this.mnuFile.Size = new System.Drawing.Size(35, 20);
            this.mnuFile.Text = "&File";
            // 
            // mnuFileOpen
            // 
            this.mnuFileOpen.Name = "mnuFileOpen";
            this.mnuFileOpen.Size = new System.Drawing.Size(152, 22);
            this.mnuFileOpen.Text = "&Open";
            this.mnuFileOpen.Click += new System.EventHandler(this.mnuFileOpen_Click);
            // 
            // toolStripMenuItem1
            // 
            this.toolStripMenuItem1.Name = "toolStripMenuItem1";
            this.toolStripMenuItem1.Size = new System.Drawing.Size(149, 6);
            // 
            // mnuFileExit
            // 
            this.mnuFileExit.Name = "mnuFileExit";
            this.mnuFileExit.Size = new System.Drawing.Size(152, 22);
            this.mnuFileExit.Text = "&Exit";
            this.mnuFileExit.Click += new System.EventHandler(this.mnuFileExit_Click);
            // 
            // mnuEffects
            // 
            this.mnuEffects.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mnuEffectsNegative,
            this.mnuEffectsGray,
            this.toolStripMenuItem2,
            this.mnuEffectsAllEffects});
            this.mnuEffects.Name = "mnuEffects";
            this.mnuEffects.Size = new System.Drawing.Size(53, 20);
            this.mnuEffects.Text = "&Effects";
            this.mnuEffects.DropDownOpening += new System.EventHandler(this.mnuEffects_DropDownOpening);
            // 
            // mnuEffectsNegative
            // 
            this.mnuEffectsNegative.Name = "mnuEffectsNegative";
            this.mnuEffectsNegative.Size = new System.Drawing.Size(152, 22);
            this.mnuEffectsNegative.Text = "&Negative";
            this.mnuEffectsNegative.Click += new System.EventHandler(this.mnuEffectsNegative_Click);
            // 
            // mnuEffectsGray
            // 
            this.mnuEffectsGray.Name = "mnuEffectsGray";
            this.mnuEffectsGray.Size = new System.Drawing.Size(152, 22);
            this.mnuEffectsGray.Text = "&Gray scale";
            this.mnuEffectsGray.Click += new System.EventHandler(this.mnuEffectsGray_Click);
            // 
            // toolStripMenuItem2
            // 
            this.toolStripMenuItem2.Name = "toolStripMenuItem2";
            this.toolStripMenuItem2.Size = new System.Drawing.Size(149, 6);
            // 
            // mnuEffectsAllEffects
            // 
            this.mnuEffectsAllEffects.Name = "mnuEffectsAllEffects";
            this.mnuEffectsAllEffects.Size = new System.Drawing.Size(152, 22);
            this.mnuEffectsAllEffects.Text = "&All effects";
            this.mnuEffectsAllEffects.Click += new System.EventHandler(this.mnuEffectsAllEffects_Click);
            // 
            // pct
            // 
            this.pct.Dock = System.Windows.Forms.DockStyle.Fill;
            this.pct.Location = new System.Drawing.Point(0, 24);
            this.pct.Name = "pct";
            this.pct.Size = new System.Drawing.Size(594, 424);
            this.pct.TabIndex = 1;
            this.pct.TabStop = false;
            // 
            // dlg
            // 
            this.dlg.FileName = "openFileDialog1";
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(594, 448);
            this.Controls.Add(this.pct);
            this.Controls.Add(this.mainMenu);
            this.MainMenuStrip = this.mainMenu;
            this.Name = "frmMain";
            this.Text = "One thread samples";
            this.mainMenu.ResumeLayout(false);
            this.mainMenu.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.pct)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.MenuStrip mainMenu;
        private System.Windows.Forms.ToolStripMenuItem mnuFile;
        private System.Windows.Forms.ToolStripMenuItem mnuFileOpen;
        private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
        private System.Windows.Forms.ToolStripMenuItem mnuFileExit;
        private System.Windows.Forms.ToolStripMenuItem mnuEffects;
        private System.Windows.Forms.ToolStripMenuItem mnuEffectsNegative;
        private System.Windows.Forms.ToolStripMenuItem mnuEffectsGray;
        private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
        private System.Windows.Forms.ToolStripMenuItem mnuEffectsAllEffects;
        private System.Windows.Forms.PictureBox pct;
        private System.Windows.Forms.OpenFileDialog dlg;
    }
}

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)

About the Author

_Erik_
Technical Lead
Spain Spain
No Biography provided

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 10 May 2010
Article Copyright 2010 by _Erik_
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid