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

User-driven applications

Rate me:
Please Sign up or sign in to vote.
4.88/5 (24 votes)
10 Apr 2010CPOL136 min read 33K   5   78  
User-driven applications are the programs in which full control is given to the users. Designers of such programs are responsible only for developing an instrument for solving some task, but they do not enforce users to work with this instrument according with a predefined scenario.
namespace UserDrivenApplications
{
    partial class Form_Main
    {
        /// <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 .Windows .Forms .ListViewItem listViewItem1 = new System .Windows .Forms .ListViewItem ("Years\' selection");
            System .Windows .Forms .ListViewItem listViewItem2 = new System .Windows .Forms .ListViewItem ("Personal data");
            System .Windows .Forms .ListViewItem listViewItem3 = new System .Windows .Forms .ListViewItem ("Data world");
            System .Windows .Forms .ListViewItem listViewItem4 = new System .Windows .Forms .ListViewItem ("Calculator");
            System .Windows .Forms .ListViewItem listViewItem5 = new System .Windows .Forms .ListViewItem ("Functions");
            System .Windows .Forms .ListViewItem listViewItem6 = new System .Windows .Forms .ListViewItem ("Variety of plots");
            System .Windows .Forms .ListViewItem listViewItem7 = new System .Windows .Forms .ListViewItem ("Village");
            this .menuMain = new System .Windows .Forms .MenuStrip ();
            this .miData = new System .Windows .Forms .ToolStripMenuItem ();
            this .miYearsSelection = new System .Windows .Forms .ToolStripMenuItem ();
            this .miPersonalData = new System .Windows .Forms .ToolStripMenuItem ();
            this .miDataWorld = new System .Windows .Forms .ToolStripMenuItem ();
            this .miCalculator = new System .Windows .Forms .ToolStripMenuItem ();
            this .miFunctions = new System .Windows .Forms .ToolStripMenuItem ();
            this .miFinancial = new System .Windows .Forms .ToolStripMenuItem ();
            this .miVillage = new System .Windows .Forms .ToolStripMenuItem ();
            this .miAbout = new System .Windows .Forms .ToolStripMenuItem ();
            this .listForms = new System .Windows .Forms .ListView ();
            this .columnHeader1 = new System .Windows .Forms .ColumnHeader ();
            this .textInfo = new System .Windows .Forms .TextBox ();
            this .menuOnGroup = new System .Windows .Forms .ContextMenuStrip (this .components);
            this .miModifyGroup = new System .Windows .Forms .ToolStripMenuItem ();
            this .miDefaultView = new System .Windows .Forms .ToolStripMenuItem ();
            this .menuOnEmpty = new System .Windows .Forms .ContextMenuStrip (this .components);
            this .miDefaultView2 = new System .Windows .Forms .ToolStripMenuItem ();
            this .menuMain .SuspendLayout ();
            this .menuOnGroup .SuspendLayout ();
            this .menuOnEmpty .SuspendLayout ();
            this .SuspendLayout ();
            // 
            // menuMain
            // 
            this .menuMain .Items .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miData,
            this.miCalculator,
            this.miFunctions,
            this.miFinancial,
            this.miVillage,
            this.miAbout});
            this .menuMain .Location = new System .Drawing .Point (0, 0);
            this .menuMain .Name = "menuMain";
            this .menuMain .Size = new System .Drawing .Size (776, 26);
            this .menuMain .TabIndex = 0;
            this .menuMain .Text = "menuStrip1";
            // 
            // miData
            // 
            this .miData .DropDownItems .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miYearsSelection,
            this.miPersonalData,
            this.miDataWorld});
            this .miData .Name = "miData";
            this .miData .Size = new System .Drawing .Size (51, 22);
            this .miData .Text = "Data";
            // 
            // miYearsSelection
            // 
            this .miYearsSelection .Name = "miYearsSelection";
            this .miYearsSelection .Size = new System .Drawing .Size (204, 22);
            this .miYearsSelection .Text = "Years selection...";
            this .miYearsSelection .Click += new System .EventHandler (this .Click_miYearsSelection);
            // 
            // miPersonalData
            // 
            this .miPersonalData .Name = "miPersonalData";
            this .miPersonalData .Size = new System .Drawing .Size (204, 22);
            this .miPersonalData .Text = "Personal data...";
            this .miPersonalData .Click += new System .EventHandler (this .Click_miPersonalData);
            // 
            // miDataWorld
            // 
            this .miDataWorld .Name = "miDataWorld";
            this .miDataWorld .Size = new System .Drawing .Size (204, 22);
            this .miDataWorld .Text = "Data world...";
            this .miDataWorld .Click += new System .EventHandler (this .Click_miDataWorld);
            // 
            // miCalculator
            // 
            this .miCalculator .Name = "miCalculator";
            this .miCalculator .Size = new System .Drawing .Size (82, 22);
            this .miCalculator .Text = "Calculator";
            this .miCalculator .Click += new System .EventHandler (this .Click_miCalculator);
            // 
            // miFunctions
            // 
            this .miFunctions .Name = "miFunctions";
            this .miFunctions .Size = new System .Drawing .Size (81, 22);
            this .miFunctions .Text = "Functions";
            this .miFunctions .Click += new System .EventHandler (this .Click_miFunctions);
            // 
            // miFinancial
            // 
            this .miFinancial .Name = "miFinancial";
            this .miFinancial .Size = new System .Drawing .Size (118, 22);
            this .miFinancial .Text = "Variety of plots";
            this .miFinancial .Click += new System .EventHandler (this .Click_miFinancial);
            // 
            // miVillage
            // 
            this .miVillage .Name = "miVillage";
            this .miVillage .Size = new System .Drawing .Size (59, 22);
            this .miVillage .Text = "Village";
            this .miVillage .Click += new System .EventHandler (this .Click_miVillage);
            // 
            // miAbout
            // 
            this .miAbout .Name = "miAbout";
            this .miAbout .Size = new System .Drawing .Size (58, 22);
            this .miAbout .Text = "About";
            this .miAbout .Click += new System .EventHandler (this .Click_miAbout);
            // 
            // listForms
            // 
            this .listForms .Columns .AddRange (new System .Windows .Forms .ColumnHeader [] {
            this.columnHeader1});
            this .listForms .FullRowSelect = true;
            this .listForms .HideSelection = false;
            this .listForms .Items .AddRange (new System .Windows .Forms .ListViewItem [] {
            listViewItem1,
            listViewItem2,
            listViewItem3,
            listViewItem4,
            listViewItem5,
            listViewItem6,
            listViewItem7});
            this .listForms .Location = new System .Drawing .Point (144, 184);
            this .listForms .MaximumSize = new System .Drawing .Size (500, 500);
            this .listForms .MinimumSize = new System .Drawing .Size (100, 100);
            this .listForms .Name = "listForms";
            this .listForms .Size = new System .Drawing .Size (161, 165);
            this .listForms .TabIndex = 1;
            this .listForms .UseCompatibleStateImageBehavior = false;
            this .listForms .View = System .Windows .Forms .View .Details;
            this .listForms .SelectedIndexChanged += new System .EventHandler (this .SelectedIndexChanged_listForms);
            // 
            // columnHeader1
            // 
            this .columnHeader1 .Text = "Forms";
            this .columnHeader1 .Width = 130;
            // 
            // textInfo
            // 
            this .textInfo .Location = new System .Drawing .Point (324, 186);
            this .textInfo .MaximumSize = new System .Drawing .Size (500, 500);
            this .textInfo .MinimumSize = new System .Drawing .Size (100, 50);
            this .textInfo .Multiline = true;
            this .textInfo .Name = "textInfo";
            this .textInfo .ReadOnly = true;
            this .textInfo .ScrollBars = System .Windows .Forms .ScrollBars .Vertical;
            this .textInfo .Size = new System .Drawing .Size (264, 163);
            this .textInfo .TabIndex = 2;
            // 
            // menuOnGroup
            // 
            this .menuOnGroup .Items .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miModifyGroup,
            this.miDefaultView});
            this .menuOnGroup .Name = "menuOnGroup";
            this .menuOnGroup .ShowImageMargin = false;
            this .menuOnGroup .Size = new System .Drawing .Size (193, 70);
            // 
            // miModifyGroup
            // 
            this .miModifyGroup .Name = "miModifyGroup";
            this .miModifyGroup .Size = new System .Drawing .Size (192, 22);
            this .miModifyGroup .Text = "Modify group...";
            this .miModifyGroup .Click += new System .EventHandler (this .Click_miModifyGroup);
            // 
            // miDefaultView
            // 
            this .miDefaultView .Name = "miDefaultView";
            this .miDefaultView .Size = new System .Drawing .Size (192, 22);
            this .miDefaultView .Text = "Form\'s default view";
            this .miDefaultView .Click += new System .EventHandler (this .Click_miDefaultView);
            // 
            // menuOnEmpty
            // 
            this .menuOnEmpty .Items .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miDefaultView2});
            this .menuOnEmpty .Name = "menuOnEmpty";
            this .menuOnEmpty .ShowImageMargin = false;
            this .menuOnEmpty .Size = new System .Drawing .Size (193, 26);
            // 
            // miDefaultView2
            // 
            this .miDefaultView2 .Name = "miDefaultView2";
            this .miDefaultView2 .Size = new System .Drawing .Size (192, 22);
            this .miDefaultView2 .Text = "Form\'s default view";
            this .miDefaultView2 .Click += new System .EventHandler (this .Click_miDefaultView);
            // 
            // Form_Main
            // 
            this .AutoScaleDimensions = new System .Drawing .SizeF (8F, 16F);
            this .AutoScaleMode = System .Windows .Forms .AutoScaleMode .Font;
            this .ClientSize = new System .Drawing .Size (776, 482);
            this .Controls .Add (this .listForms);
            this .Controls .Add (this .textInfo);
            this .Controls .Add (this .menuMain);
            this .DoubleBuffered = true;
            this .MainMenuStrip = this .menuMain;
            this .MaximizeBox = false;
            this .MinimizeBox = false;
            this .Name = "Form_Main";
            this .ShowIcon = false;
            this .Text = "User-driven applications";
            this .Load += new System .EventHandler (this .OnLoad);
            this .MouseUp += new System .Windows .Forms .MouseEventHandler (this .OnMouseUp);
            this .Paint += new System .Windows .Forms .PaintEventHandler (this .OnPaint);
            this .ContextMenuStripChanged += new System .EventHandler (this .OnContextMenuChanged);
            this .MouseDown += new System .Windows .Forms .MouseEventHandler (this .OnMouseDown);
            this .FormClosing += new System .Windows .Forms .FormClosingEventHandler (this .OnFormClosing);
            this .MouseMove += new System .Windows .Forms .MouseEventHandler (this .OnMouseMove);
            this .menuMain .ResumeLayout (false);
            this .menuMain .PerformLayout ();
            this .menuOnGroup .ResumeLayout (false);
            this .menuOnEmpty .ResumeLayout (false);
            this .ResumeLayout (false);
            this .PerformLayout ();

        }

        #endregion

        private System .Windows .Forms .MenuStrip menuMain;
        private System .Windows .Forms .ToolStripMenuItem miData;
        private System .Windows .Forms .ToolStripMenuItem miYearsSelection;
        private System .Windows .Forms .ToolStripMenuItem miFunctions;
        private System .Windows .Forms .ToolStripMenuItem miPersonalData;
        private System .Windows .Forms .ToolStripMenuItem miCalculator;
        private System .Windows .Forms .ToolStripMenuItem miFinancial;
        private System .Windows .Forms .ToolStripMenuItem miAbout;
        private System .Windows .Forms .ToolStripMenuItem miVillage;
        private System .Windows .Forms .ToolStripMenuItem miDataWorld;
        private System .Windows .Forms .ListView listForms;
        private System .Windows .Forms .ColumnHeader columnHeader1;
        private System .Windows .Forms .TextBox textInfo;
        private System .Windows .Forms .ContextMenuStrip menuOnGroup;
        private System .Windows .Forms .ToolStripMenuItem miModifyGroup;
        private System .Windows .Forms .ToolStripMenuItem miDefaultView;
        private System .Windows .Forms .ContextMenuStrip menuOnEmpty;
        private System .Windows .Forms .ToolStripMenuItem miDefaultView2;
    }
}

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

Comments and Discussions