Click here to Skip to main content
15,885,767 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_FuncXrYr
    {
        /// <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 ();
            this .btnChangeFunc = new System .Windows .Forms .Button ();
            this .textStep = new System .Windows .Forms .TextBox ();
            this .textTo = new System .Windows .Forms .TextBox ();
            this .labelErrorYR = new System .Windows .Forms .Label ();
            this .textFrom = new System .Windows .Forms .TextBox ();
            this .textY = new System .Windows .Forms .TextBox ();
            this .labelErrorXR = new System .Windows .Forms .Label ();
            this .textName = new System .Windows .Forms .TextBox ();
            this .btnAddFunc = new System .Windows .Forms .Button ();
            this .textX = new System .Windows .Forms .TextBox ();
            this .btnShowFunc = new System .Windows .Forms .Button ();
            this .labelFunctions = new System .Windows .Forms .Label ();
            this .labelOperations = new System .Windows .Forms .Label ();
            this .menuOnPlot = new System .Windows .Forms .ContextMenuStrip (this .components);
            this .miHorScaleParams = new System .Windows .Forms .ToolStripMenuItem ();
            this .miVerScaleParams = new System .Windows .Forms .ToolStripMenuItem ();
            this .menuOnScale = new System .Windows .Forms .ContextMenuStrip (this .components);
            this .miModifyScale = new System .Windows .Forms .ToolStripMenuItem ();
            this .miFlipScale = new System .Windows .Forms .ToolStripMenuItem ();
            this .menuOnEmpty = new System .Windows .Forms .ContextMenuStrip (this .components);
            this .miDefaultView = new System .Windows .Forms .ToolStripMenuItem ();
            this .menuOnGroup = new System .Windows .Forms .ContextMenuStrip (this .components);
            this .miModifyGroup = new System .Windows .Forms .ToolStripMenuItem ();
            this .miFixUnfixElements = new System .Windows .Forms .ToolStripMenuItem ();
            this .miGroupDefaultView = new System .Windows .Forms .ToolStripMenuItem ();
            this .menuOnPlot .SuspendLayout ();
            this .menuOnScale .SuspendLayout ();
            this .menuOnEmpty .SuspendLayout ();
            this .menuOnGroup .SuspendLayout ();
            this .SuspendLayout ();
            // 
            // btnChangeFunc
            // 
            this .btnChangeFunc .Location = new System .Drawing .Point (435, 503);
            this .btnChangeFunc .MaximumSize = new System .Drawing .Size (190, 128);
            this .btnChangeFunc .MinimumSize = new System .Drawing .Size (60, 22);
            this .btnChangeFunc .Name = "btnChangeFunc";
            this .btnChangeFunc .Size = new System .Drawing .Size (90, 28);
            this .btnChangeFunc .TabIndex = 37;
            this .btnChangeFunc .Text = "Change";
            this .btnChangeFunc .UseVisualStyleBackColor = true;
            this .btnChangeFunc .Click += new System .EventHandler (this .Click_btnChange);
            // 
            // textStep
            // 
            this .textStep .Location = new System .Drawing .Point (431, 424);
            this .textStep .Name = "textStep";
            this .textStep .Size = new System .Drawing .Size (54, 22);
            this .textStep .TabIndex = 27;
            // 
            // textTo
            // 
            this .textTo .Location = new System .Drawing .Point (431, 396);
            this .textTo .Name = "textTo";
            this .textTo .Size = new System .Drawing .Size (54, 22);
            this .textTo .TabIndex = 26;
            // 
            // labelErrorYR
            // 
            this .labelErrorYR .BorderStyle = System .Windows .Forms .BorderStyle .Fixed3D;
            this .labelErrorYR .ForeColor = System .Drawing .Color .Red;
            this .labelErrorYR .Location = new System .Drawing .Point (92, 472);
            this .labelErrorYR .MaximumSize = new System .Drawing .Size (600, 300);
            this .labelErrorYR .MinimumSize = new System .Drawing .Size (60, 18);
            this .labelErrorYR .Name = "labelErrorYR";
            this .labelErrorYR .Size = new System .Drawing .Size (306, 19);
            this .labelErrorYR .TabIndex = 36;
            // 
            // textFrom
            // 
            this .textFrom .Location = new System .Drawing .Point (431, 368);
            this .textFrom .Name = "textFrom";
            this .textFrom .Size = new System .Drawing .Size (54, 22);
            this .textFrom .TabIndex = 25;
            // 
            // textY
            // 
            this .textY .HideSelection = false;
            this .textY .Location = new System .Drawing .Point (92, 425);
            this .textY .MaximumSize = new System .Drawing .Size (600, 600);
            this .textY .MinimumSize = new System .Drawing .Size (60, 40);
            this .textY .Multiline = true;
            this .textY .Name = "textY";
            this .textY .ScrollBars = System .Windows .Forms .ScrollBars .Vertical;
            this .textY .Size = new System .Drawing .Size (306, 44);
            this .textY .TabIndex = 35;
            // 
            // labelErrorXR
            // 
            this .labelErrorXR .BorderStyle = System .Windows .Forms .BorderStyle .Fixed3D;
            this .labelErrorXR .ForeColor = System .Drawing .Color .Red;
            this .labelErrorXR .Location = new System .Drawing .Point (92, 403);
            this .labelErrorXR .MaximumSize = new System .Drawing .Size (600, 300);
            this .labelErrorXR .MinimumSize = new System .Drawing .Size (60, 18);
            this .labelErrorXR .Name = "labelErrorXR";
            this .labelErrorXR .Size = new System .Drawing .Size (306, 19);
            this .labelErrorXR .TabIndex = 34;
            // 
            // textName
            // 
            this .textName .Location = new System .Drawing .Point (137, 506);
            this .textName .MaximumSize = new System .Drawing .Size (500, 50);
            this .textName .MinimumSize = new System .Drawing .Size (90, 20);
            this .textName .Name = "textName";
            this .textName .Size = new System .Drawing .Size (169, 22);
            this .textName .TabIndex = 32;
            // 
            // btnAddFunc
            // 
            this .btnAddFunc .Location = new System .Drawing .Point (339, 503);
            this .btnAddFunc .MaximumSize = new System .Drawing .Size (190, 128);
            this .btnAddFunc .MinimumSize = new System .Drawing .Size (60, 22);
            this .btnAddFunc .Name = "btnAddFunc";
            this .btnAddFunc .Size = new System .Drawing .Size (90, 28);
            this .btnAddFunc .TabIndex = 33;
            this .btnAddFunc .Text = "Add";
            this .btnAddFunc .UseVisualStyleBackColor = true;
            this .btnAddFunc .Click += new System .EventHandler (this .Click_btnAdd);
            // 
            // textX
            // 
            this .textX .HideSelection = false;
            this .textX .Location = new System .Drawing .Point (92, 356);
            this .textX .MaximumSize = new System .Drawing .Size (600, 600);
            this .textX .MinimumSize = new System .Drawing .Size (60, 40);
            this .textX .Multiline = true;
            this .textX .Name = "textX";
            this .textX .ScrollBars = System .Windows .Forms .ScrollBars .Vertical;
            this .textX .Size = new System .Drawing .Size (306, 44);
            this .textX .TabIndex = 30;
            // 
            // btnShowFunc
            // 
            this .btnShowFunc .Location = new System .Drawing .Point (435, 467);
            this .btnShowFunc .MaximumSize = new System .Drawing .Size (190, 128);
            this .btnShowFunc .MinimumSize = new System .Drawing .Size (60, 22);
            this .btnShowFunc .Name = "btnShowFunc";
            this .btnShowFunc .Size = new System .Drawing .Size (90, 28);
            this .btnShowFunc .TabIndex = 31;
            this .btnShowFunc .Text = "Show";
            this .btnShowFunc .UseVisualStyleBackColor = true;
            this .btnShowFunc .Click += new System .EventHandler (this .Click_btnShowFunc);
            // 
            // labelFunctions
            // 
            this .labelFunctions .BorderStyle = System .Windows .Forms .BorderStyle .Fixed3D;
            this .labelFunctions .Location = new System .Drawing .Point (151, 595);
            this .labelFunctions .MaximumSize = new System .Drawing .Size (600, 600);
            this .labelFunctions .MinimumSize = new System .Drawing .Size (50, 18);
            this .labelFunctions .Name = "labelFunctions";
            this .labelFunctions .Size = new System .Drawing .Size (364, 19);
            this .labelFunctions .TabIndex = 29;
            this .labelFunctions .Text = "sin cos tg sh ch th ln lg exp sqrt mod arcsin arccos arctg";
            // 
            // labelOperations
            // 
            this .labelOperations .BorderStyle = System .Windows .Forms .BorderStyle .Fixed3D;
            this .labelOperations .Location = new System .Drawing .Point (151, 567);
            this .labelOperations .MaximumSize = new System .Drawing .Size (600, 600);
            this .labelOperations .MinimumSize = new System .Drawing .Size (50, 18);
            this .labelOperations .Name = "labelOperations";
            this .labelOperations .Size = new System .Drawing .Size (364, 19);
            this .labelOperations .TabIndex = 28;
            this .labelOperations .Text = " +  -  *  /  ^(degree)";
            // 
            // menuOnPlot
            // 
            this .menuOnPlot .Items .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miHorScaleParams,
            this.miVerScaleParams});
            this .menuOnPlot .Name = "menuOnPlot";
            this .menuOnPlot .ShowImageMargin = false;
            this .menuOnPlot .Size = new System .Drawing .Size (228, 48);
            // 
            // miHorScaleParams
            // 
            this .miHorScaleParams .Name = "miHorScaleParams";
            this .miHorScaleParams .Size = new System .Drawing .Size (227, 22);
            this .miHorScaleParams .Text = "Modify horizontal scale...";
            this .miHorScaleParams .Click += new System .EventHandler (this .Click_miModifyHorScale);
            // 
            // miVerScaleParams
            // 
            this .miVerScaleParams .Name = "miVerScaleParams";
            this .miVerScaleParams .Size = new System .Drawing .Size (227, 22);
            this .miVerScaleParams .Text = "Modify vertical scale...";
            this .miVerScaleParams .Click += new System .EventHandler (this .Click_miModifyVerScale);
            // 
            // menuOnScale
            // 
            this .menuOnScale .Items .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miModifyScale,
            this.miFlipScale});
            this .menuOnScale .Name = "contextMenuOnScale";
            this .menuOnScale .ShowImageMargin = false;
            this .menuOnScale .Size = new System .Drawing .Size (162, 48);
            // 
            // miModifyScale
            // 
            this .miModifyScale .Name = "miModifyScale";
            this .miModifyScale .Size = new System .Drawing .Size (161, 22);
            this .miModifyScale .Text = "Modify scale...";
            this .miModifyScale .Click += new System .EventHandler (this .Click_miModifyScale);
            // 
            // miFlipScale
            // 
            this .miFlipScale .Name = "miFlipScale";
            this .miFlipScale .Size = new System .Drawing .Size (161, 22);
            this .miFlipScale .Text = "Flip scale";
            this .miFlipScale .Click += new System .EventHandler (this .Click_miFlipScale);
            // 
            // menuOnEmpty
            // 
            this .menuOnEmpty .Items .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miDefaultView});
            this .menuOnEmpty .Name = "menuOnEmpty";
            this .menuOnEmpty .ShowImageMargin = false;
            this .menuOnEmpty .Size = new System .Drawing .Size (193, 26);
            // 
            // 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);
            // 
            // menuOnGroup
            // 
            this .menuOnGroup .Items .AddRange (new System .Windows .Forms .ToolStripItem [] {
            this.miModifyGroup,
            this.miFixUnfixElements,
            this.miGroupDefaultView});
            this .menuOnGroup .Name = "menuOnGroup";
            this .menuOnGroup .ShowImageMargin = false;
            this .menuOnGroup .Size = new System .Drawing .Size (296, 92);
            this .menuOnGroup .Opening += new System .ComponentModel .CancelEventHandler (this .Opening_menuOnGroup);
            // 
            // miModifyGroup
            // 
            this .miModifyGroup .Name = "miModifyGroup";
            this .miModifyGroup .Size = new System .Drawing .Size (295, 22);
            this .miModifyGroup .Text = "Modify group...";
            this .miModifyGroup .Click += new System .EventHandler (this .Click_miModifyGroup);
            // 
            // miFixUnfixElements
            // 
            this .miFixUnfixElements .Name = "miFixUnfixElements";
            this .miFixUnfixElements .Size = new System .Drawing .Size (295, 22);
            this .miFixUnfixElements .Text = "Fix/unfix elements";
            this .miFixUnfixElements .Click += new System .EventHandler (this .Click_miFixUnfixElements);
            // 
            // miGroupDefaultView
            // 
            this .miGroupDefaultView .Name = "miGroupDefaultView";
            this .miGroupDefaultView .Size = new System .Drawing .Size (295, 22);
            this .miGroupDefaultView .Text = "Group\'s default viewing parameters";
            this .miGroupDefaultView .Click += new System .EventHandler (this .Click_miGroupDefaultView);
            // 
            // Form_FuncXrYr
            // 
            this .AutoScaleDimensions = new System .Drawing .SizeF (8F, 16F);
            this .AutoScaleMode = System .Windows .Forms .AutoScaleMode .Font;
            this .ClientSize = new System .Drawing .Size (560, 646);
            this .Controls .Add (this .btnChangeFunc);
            this .Controls .Add (this .textStep);
            this .Controls .Add (this .textTo);
            this .Controls .Add (this .labelErrorYR);
            this .Controls .Add (this .textFrom);
            this .Controls .Add (this .textY);
            this .Controls .Add (this .labelErrorXR);
            this .Controls .Add (this .textName);
            this .Controls .Add (this .btnAddFunc);
            this .Controls .Add (this .textX);
            this .Controls .Add (this .btnShowFunc);
            this .Controls .Add (this .labelFunctions);
            this .Controls .Add (this .labelOperations);
            this .DoubleBuffered = true;
            this .MaximizeBox = false;
            this .MinimizeBox = false;
            this .Name = "Form_FuncXrYr";
            this .ShowIcon = false;
            this .Text = "Function {X(r), Y(r)}";
            this .Load += new System .EventHandler (this .OnLoad);
            this .MouseUp += new System .Windows .Forms .MouseEventHandler (this .OnMouseUp);
            this .MouseDoubleClick += new System .Windows .Forms .MouseEventHandler (this .OnMouseDoubleClick);
            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 .menuOnPlot .ResumeLayout (false);
            this .menuOnScale .ResumeLayout (false);
            this .menuOnEmpty .ResumeLayout (false);
            this .menuOnGroup .ResumeLayout (false);
            this .ResumeLayout (false);
            this .PerformLayout ();

        }

        #endregion

        private System .Windows .Forms .Button btnChangeFunc;
        private System .Windows .Forms .TextBox textStep;
        private System .Windows .Forms .TextBox textTo;
        private System .Windows .Forms .Label labelErrorYR;
        private System .Windows .Forms .TextBox textFrom;
        private System .Windows .Forms .TextBox textY;
        private System .Windows .Forms .Label labelErrorXR;
        private System .Windows .Forms .TextBox textName;
        private System .Windows .Forms .Button btnAddFunc;
        private System .Windows .Forms .TextBox textX;
        private System .Windows .Forms .Button btnShowFunc;
        private System .Windows .Forms .Label labelFunctions;
        private System .Windows .Forms .Label labelOperations;
        private System .Windows .Forms .ContextMenuStrip menuOnPlot;
        private System .Windows .Forms .ToolStripMenuItem miHorScaleParams;
        private System .Windows .Forms .ToolStripMenuItem miVerScaleParams;
        private System .Windows .Forms .ContextMenuStrip menuOnScale;
        private System .Windows .Forms .ToolStripMenuItem miModifyScale;
        private System .Windows .Forms .ToolStripMenuItem miFlipScale;
        private System .Windows .Forms .ContextMenuStrip menuOnEmpty;
        private System .Windows .Forms .ToolStripMenuItem miDefaultView;
        private System .Windows .Forms .ContextMenuStrip menuOnGroup;
        private System .Windows .Forms .ToolStripMenuItem miModifyGroup;
        private System .Windows .Forms .ToolStripMenuItem miFixUnfixElements;
        private System .Windows .Forms .ToolStripMenuItem miGroupDefaultView;
    }
}

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