Пример #1
0
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm));
            this.MainMenu = new System.Windows.Forms.MenuStrip();
            this.File = new System.Windows.Forms.ToolStripMenuItem();
            this.ExitMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.Edit = new System.Windows.Forms.ToolStripMenuItem();
            this.FunctionMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.VarMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.SaveVarMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.ClearMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.Help = new System.Windows.Forms.ToolStripMenuItem();
            this.AuthorMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.AboutMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.HelpMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.SaveMenu = new System.Windows.Forms.ToolStripMenuItem();
            this.consoleBox = new interpr.ConsoleBox();
            this.MainMenu.SuspendLayout();
            this.SuspendLayout();
            // 
            // MainMenu
            // 
            this.MainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.File,
            this.Edit,
            this.Help});
            this.MainMenu.Location = new System.Drawing.Point(0, 0);
            this.MainMenu.Name = "MainMenu";
            this.MainMenu.Padding = new System.Windows.Forms.Padding(1);
            this.MainMenu.Size = new System.Drawing.Size(790, 24);
            this.MainMenu.TabIndex = 3;
            // 
            // File
            // 
            this.File.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.SaveMenu,
            this.ExitMenu});
            this.File.Name = "File";
            this.File.Size = new System.Drawing.Size(45, 22);
            this.File.Text = "Файл";
            // 
            // ExitMenu
            // 
            this.ExitMenu.Name = "ExitMenu";
            this.ExitMenu.Size = new System.Drawing.Size(152, 22);
            this.ExitMenu.Text = "Выход";
            this.ExitMenu.ToolTipText = "Выход из приложения";
            this.ExitMenu.Click += new System.EventHandler(this.ExitMenu_Click);
            // 
            // Edit
            // 
            this.Edit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.FunctionMenu,
            this.VarMenu,
            this.SaveVarMenu,
            this.toolStripSeparator1,
            this.ClearMenu});
            this.Edit.Name = "Edit";
            this.Edit.Size = new System.Drawing.Size(68, 22);
            this.Edit.Text = "Редактор";
            // 
            // FunctionMenu
            // 
            this.FunctionMenu.Name = "FunctionMenu";
            this.FunctionMenu.Size = new System.Drawing.Size(194, 22);
            this.FunctionMenu.Text = "Функции";
            this.FunctionMenu.ToolTipText = "Вызов окна редактирования функций";
            this.FunctionMenu.Click += new System.EventHandler(this.FunctionMenu_Click);
            // 
            // VarMenu
            // 
            this.VarMenu.Name = "VarMenu";
            this.VarMenu.Size = new System.Drawing.Size(194, 22);
            this.VarMenu.Text = "Переменные";
            this.VarMenu.ToolTipText = "Вызов окна списка переменных";
            this.VarMenu.Click += new System.EventHandler(this.VarMenu_Click);
            // 
            // SaveVarMenu
            // 
            this.SaveVarMenu.Name = "SaveVarMenu";
            this.SaveVarMenu.Size = new System.Drawing.Size(194, 22);
            this.SaveVarMenu.Text = "Сохранить переменные";
            this.SaveVarMenu.ToolTipText = "Сохранение переменных";
            this.SaveVarMenu.Click += new System.EventHandler(this.SaveVarMenu_Click);
            // 
            // toolStripSeparator1
            // 
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(191, 6);
            // 
            // ClearMenu
            // 
            this.ClearMenu.Name = "ClearMenu";
            this.ClearMenu.Size = new System.Drawing.Size(194, 22);
            this.ClearMenu.Text = "Перезапуск";
            this.ClearMenu.ToolTipText = "Перезапуск интерпретатора";
            this.ClearMenu.Click += new System.EventHandler(this.ClearMenu_Click);
            // 
            // Help
            // 
            this.Help.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.AuthorMenu,
            this.AboutMenu,
            this.HelpMenu});
            this.Help.Name = "Help";
            this.Help.Size = new System.Drawing.Size(24, 22);
            this.Help.Text = "?";
            // 
            // AuthorMenu
            // 
            this.AuthorMenu.Name = "AuthorMenu";
            this.AuthorMenu.Size = new System.Drawing.Size(117, 22);
            this.AuthorMenu.Text = "Автор";
            this.AuthorMenu.ToolTipText = "Инфрмация о разработчике";
            this.AuthorMenu.Click += new System.EventHandler(this.AuthorMenu_Click);
            // 
            // AboutMenu
            // 
            this.AboutMenu.Name = "AboutMenu";
            this.AboutMenu.Size = new System.Drawing.Size(117, 22);
            this.AboutMenu.Text = "Задание";
            this.AboutMenu.ToolTipText = "Описание задания курсовой работы";
            this.AboutMenu.Click += new System.EventHandler(this.AboutMenu_Click);
            // 
            // HelpMenu
            // 
            this.HelpMenu.Name = "HelpMenu";
            this.HelpMenu.Size = new System.Drawing.Size(117, 22);
            this.HelpMenu.Text = "Помощь";
            this.HelpMenu.ToolTipText = "Краткое описание интерпретатора и языка little BASIC";
            this.HelpMenu.Click += new System.EventHandler(this.HelpMenu_Click);
            // 
            // SaveMenu
            // 
            this.SaveMenu.Name = "SaveMenu";
            this.SaveMenu.Size = new System.Drawing.Size(152, 22);
            this.SaveMenu.Text = "Сохранить";
            this.SaveMenu.ToolTipText = "Сохранение истории выполнения команд";
            this.SaveMenu.Click += new System.EventHandler(this.SaveMenu_Click);
            // 
            // consoleBox
            // 
            this.consoleBox.Cursor = System.Windows.Forms.Cursors.IBeam;
            this.consoleBox.Dock = System.Windows.Forms.DockStyle.Fill;
            this.consoleBox.Location = new System.Drawing.Point(0, 24);
            this.consoleBox.Name = "consoleBox";
            this.consoleBox.Size = new System.Drawing.Size(790, 446);
            this.consoleBox.TabIndex = 0;
            this.consoleBox.GetCommand += new interpr.ConsoleBoxGetCommandEventHandler(this.consoleBox1_GetCommand);
            // 
            // MainForm
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(790, 470);
            this.Controls.Add(this.consoleBox);
            this.Controls.Add(this.MainMenu);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MainMenuStrip = this.MainMenu;
            this.MinimumSize = new System.Drawing.Size(400, 240);
            this.Name = "MainForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Интерпретатор языка little BASIC";
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainForm_FormClosing);
            this.Load += new System.EventHandler(this.MainForm_Load);
            this.MainMenu.ResumeLayout(false);
            this.MainMenu.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
Пример #2
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof (Form1));
     this.panel1 = new System.Windows.Forms.Panel();
     this.button5 = new System.Windows.Forms.Button();
     this.button4 = new System.Windows.Forms.Button();
     this.button2 = new System.Windows.Forms.Button();
     this.button1 = new System.Windows.Forms.Button();
     this.button3 = new System.Windows.Forms.Button();
     this.consoleBox1 = new interpr.ConsoleBox();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.button5);
     this.panel1.Controls.Add(this.button4);
     this.panel1.Controls.Add(this.button2);
     this.panel1.Controls.Add(this.button1);
     this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(624, 24);
     this.panel1.TabIndex = 1;
     //
     // button5
     //
     this.button5.Location = new System.Drawing.Point(360, 0);
     this.button5.Name = "button5";
     this.button5.Size = new System.Drawing.Size(144, 24);
     this.button5.TabIndex = 3;
     this.button5.Text = "Сохранить переменные";
     this.button5.Click += new System.EventHandler(this.button5_Click);
     //
     // button4
     //
     this.button4.Location = new System.Drawing.Point(504, 0);
     this.button4.Name = "button4";
     this.button4.Size = new System.Drawing.Size(120, 24);
     this.button4.TabIndex = 1;
     this.button4.Text = "Выход";
     this.button4.Click += new System.EventHandler(this.button4_Click);
     //
     // button2
     //
     this.button2.Location = new System.Drawing.Point(120, 0);
     this.button2.Name = "button2";
     this.button2.Size = new System.Drawing.Size(120, 24);
     this.button2.TabIndex = 1;
     this.button2.Text = "Переменные";
     this.button2.Click += new System.EventHandler(this.button2_Click);
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(0, 0);
     this.button1.Name = "button1";
     this.button1.Size = new System.Drawing.Size(120, 24);
     this.button1.TabIndex = 1;
     this.button1.Text = "Функции";
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // button3
     //
     this.button3.Location = new System.Drawing.Point(240, 0);
     this.button3.Name = "button3";
     this.button3.Size = new System.Drawing.Size(120, 24);
     this.button3.TabIndex = 2;
     this.button3.Text = "Перезапуск";
     this.button3.Click += new System.EventHandler(this.button3_Click);
     //
     // consoleBox1
     //
     this.consoleBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.consoleBox1.Location = new System.Drawing.Point(0, 24);
     this.consoleBox1.Name = "consoleBox1";
     this.consoleBox1.Size = new System.Drawing.Size(624, 397);
     this.consoleBox1.TabIndex = 0;
     this.consoleBox1.GetCommand += new interpr.ConsoleBoxGetCommandEventHandler(this.consoleBox1_GetCommand);
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize = new System.Drawing.Size(624, 421);
     this.Controls.Add(this.consoleBox1);
     this.Controls.Add(this.button3);
     this.Controls.Add(this.panel1);
     this.Icon = ((System.Drawing.Icon) (resources.GetObject("$this.Icon")));
     this.Name = "Form1";
     this.Text = "Интерактивный интерпретатор";
     this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
     this.Load += new System.EventHandler(this.Form1_Load);
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }