public CodingMathRequest() { ConsoleTextBox.AddColor1(); HowSaveFile.AddColor1(); OpenFile.AddColor1(); ButtonCopy.AddColor1(); ButtonPaste.AddColor1(); ButtonDelete.AddColor1(); ButtonEnter.AddColor1(); SaveFile.AddColor1(); CloseFile.AddColor1(); ButtonDelete.Click += new EventHandler(delegate(object sender, EventArgs e){ TextArea.Clear(); }); ButtonCopy.Click += new EventHandler(Copy); ButtonPaste.Click += new EventHandler(Paste); ButtonEnter.Click += new EventHandler(StartScript); Console.SuspendLayout(); TBLayout.SuspendLayout(); Console.ResumeLayout(false); Console.PerformLayout(); TBLayout.ResumeLayout(false); // CodingMathRequest Controls.Add(Console); Controls.Add(TBLayout); Controls.Add(TextArea); Name = "CodingMathRequest"; OpenFile.Click += new EventHandler(OpenFiles); SaveFile.Click += new EventHandler(SaveFiles); CloseFile.Click += new EventHandler(CloseFiles); HowSaveFile.Click += new EventHandler(HowSaveFiles); TextArea.DragEnter += new DragEventHandler(DragEnterFile); TextArea.DragDrop += new DragEventHandler(DragDropFile); ConsoleTitle.DoubleClick += new EventHandler(OpenConsole); // Console Console.Controls.Add(ConsoleTextBox); Console.Controls.Add(ConsoleTitle); Console.Dock = DockStyle.Bottom; Console.Location = new Point(0, 479); Console.Margin = new Padding(0); Console.MaximumSize = new Size(487, 250); Console.MinimumSize = new Size(487, 44); Console.Name = "Console"; Console.Size = new Size(487, 44); Console.TabIndex = 0; TBLayout.Controls.AddRange(new Control[] { OpenFile, SaveFile, HowSaveFile, CloseFile, ButtonPaste, ButtonCopy, ButtonDelete, ButtonEnter }); }