void InitializeEditor() { this.SuspendLayout(); this.edFormulaWrapper = new ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBindingWrapper(); this.edFormula = edFormulaWrapper.TextEditorControl; this.edFormula.VisibleChanged += new EventHandler(edFormula_VisibleChanged); this.edFormula.Location = new System.Drawing.Point(0, 0); this.edFormula.Dock = DockStyle.Fill; //this.edFormula.Multiline = true; this.edFormula.Name = "edFormula"; //this.edFormula.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.edFormula.Size = new System.Drawing.Size(528, 336); this.edFormula.Text = ""; this.Controls.Add(this.edFormula); this.ScriptName = System.Guid.NewGuid().ToString() + ".cs"; this.edFormula.Document.TextEditorProperties.TabIndent = 2; this.edFormulaWrapper.textAreaControl.InitializeFormatter(); this.edFormulaWrapper.textAreaControl.TextEditorProperties.MouseWheelScrollDown = true; this.ResumeLayout(); }
void InitializeEditor() { this.SuspendLayout(); this.edFormulaWrapper = new ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBindingWrapper(); this.edFormula = edFormulaWrapper.TextEditorControl; this.edFormula.VisibleChanged += new EventHandler(edFormula_VisibleChanged); this.edFormula.Location = new System.Drawing.Point(0, 0); this.edFormula.Dock = DockStyle.Fill; //this.edFormula.Multiline = true; this.edFormula.Name = "edFormula"; //this.edFormula.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.edFormula.Size = new System.Drawing.Size(528, 336); this.edFormula.Text = ""; this.Controls.Add(this.edFormula); this.ScriptName = System.Guid.NewGuid().ToString() + ".cs"; this.edFormula.Document.TextEditorProperties.TabIndent=2; this.edFormulaWrapper.textAreaControl.InitializeFormatter(); this.edFormulaWrapper.textAreaControl.TextEditorProperties.MouseWheelScrollDown=true; this.ResumeLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.edFormulaWrapper = new ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.TextEditorDisplayBindingWrapper(); this.edFormula = edFormulaWrapper.TextEditorControl; this.lbCompilerErrors = new System.Windows.Forms.ListBox(); this.btUpdate = new System.Windows.Forms.Button(); this.btCancel = new System.Windows.Forms.Button(); this.btDoIt = new System.Windows.Forms.Button(); this.btCompile = new System.Windows.Forms.Button(); this.SuspendLayout(); // // edFormula // this.edFormula.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.edFormula.Location = new System.Drawing.Point(0, 0); //this.edFormula.Multiline = true; this.edFormula.Name = "edFormula"; //this.edFormula.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.edFormula.Size = new System.Drawing.Size(528, 336); this.edFormula.TabIndex = 23; this.edFormula.Text = ""; // // lbCompilerErrors // this.lbCompilerErrors.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lbCompilerErrors.HorizontalExtent = 4096; this.lbCompilerErrors.HorizontalScrollbar = true; this.lbCompilerErrors.Location = new System.Drawing.Point(0, 344); this.lbCompilerErrors.Name = "lbCompilerErrors"; this.lbCompilerErrors.Size = new System.Drawing.Size(592, 82); this.lbCompilerErrors.TabIndex = 29; this.lbCompilerErrors.DoubleClick += new System.EventHandler(this.EhCompilerErrors_DoubleClick); // // btUpdate // this.btUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btUpdate.Location = new System.Drawing.Point(536, 136); this.btUpdate.Name = "btUpdate"; this.btUpdate.Size = new System.Drawing.Size(56, 32); this.btUpdate.TabIndex = 28; this.btUpdate.Text = "Update"; this.btUpdate.Click += new System.EventHandler(this.EhUpdate_Click); // // btCancel // this.btCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btCancel.Location = new System.Drawing.Point(536, 240); this.btCancel.Name = "btCancel"; this.btCancel.Size = new System.Drawing.Size(56, 32); this.btCancel.TabIndex = 27; this.btCancel.Text = "Cancel"; this.btCancel.Click += new System.EventHandler(this.EhCancel_Click); // // btDoIt // this.btDoIt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btDoIt.Location = new System.Drawing.Point(536, 25); this.btDoIt.Name = "btDoIt"; this.btDoIt.Size = new System.Drawing.Size(56, 32); this.btDoIt.TabIndex = 24; this.btDoIt.Text = "Do It!"; this.btDoIt.Click += new System.EventHandler(this.EhDoIt_Click); // // btCompile // this.btCompile.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btCompile.Location = new System.Drawing.Point(536, 80); this.btCompile.Name = "btCompile"; this.btCompile.Size = new System.Drawing.Size(56, 32); this.btCompile.TabIndex = 36; this.btCompile.Text = "Compile"; this.btCompile.Click += new System.EventHandler(this.EhCompile_Click); // // TableScriptControl // this.Controls.Add(this.btCompile); this.Controls.Add(this.edFormula); this.Controls.Add(this.lbCompilerErrors); this.Controls.Add(this.btUpdate); this.Controls.Add(this.btCancel); this.Controls.Add(this.btDoIt); this.Name = "TableScriptControl"; this.Size = new System.Drawing.Size(600, 428); this.ResumeLayout(false); }