public override void Redo(CodeEditBox owner) { Row.Write(Value, Offest); }
public override void Undo(CodeEditBox owner) { Row.Remove(Offest); }
public override void InvokeEvent(CodeEditBox owner) { owner.textChanged(owner, new TextChangedEventArgs(Row, Offest, Value.Count())); }
public override void InvokeEvent(CodeEditBox owner) { }
public override void Undo(CodeEditBox owner) { base.Redo(owner); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CodeBlock)); this.CodeEditBox = new MAIDE.UI.CodeEditBox(); this.fillSetButton = new System.Windows.Forms.Button(); this.imgList = new System.Windows.Forms.ImageList(this.components); this.SuspendLayout(); // // caption // this.title.Size = new System.Drawing.Size(1049, 25); this.title.DoubleClick += new System.EventHandler(this.caption_DoubleClick); // // CodeEditBox // this.CodeEditBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(30))))); this.CodeEditBox.Dock = System.Windows.Forms.DockStyle.Fill; this.CodeEditBox.Font = new System.Drawing.Font("Consolas", 10F); this.CodeEditBox.ForeColor = System.Drawing.Color.Gainsboro; this.CodeEditBox.Location = new System.Drawing.Point(0, 0); this.CodeEditBox.Name = "CodeEditBox"; this.CodeEditBox.SelectEnd = new System.Drawing.Point(0, 0); this.CodeEditBox.SelectStart = new System.Drawing.Point(0, 0); this.CodeEditBox.Size = new System.Drawing.Size(476, 257); this.CodeEditBox.TabIndex = 2; this.CodeEditBox.TextBaseBrush = System.Drawing.Color.FromArgb(((int)(((byte)(220)))), ((int)(((byte)(220)))), ((int)(((byte)(220))))); this.CodeEditBox.Zoom = 1F; // // fillSetButton // this.fillSetButton.Dock = System.Windows.Forms.DockStyle.Fill; this.fillSetButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.fillSetButton.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.fillSetButton.Location = new System.Drawing.Point(0, 0); this.fillSetButton.Name = "fillSetButton"; this.fillSetButton.RightToLeft = System.Windows.Forms.RightToLeft.Yes; this.fillSetButton.Size = new System.Drawing.Size(22, 22); this.fillSetButton.TabIndex = 4; this.fillSetButton.TabStop = false; this.fillSetButton.Text = "#"; this.fillSetButton.UseVisualStyleBackColor = true; this.fillSetButton.Click += new System.EventHandler(this.fillSetButton_Click); // // imgList // this.imgList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgList.ImageStream"))); this.imgList.TransparentColor = System.Drawing.Color.Transparent; this.imgList.Images.SetKeyName(0, "0"); this.imgList.Images.SetKeyName(1, "1"); this.imgList.Images.SetKeyName(2, "2"); // // CodeBlock // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.Content = this.CodeEditBox; this.Name = "CodeBlock"; this.RightSlot = this.fillSetButton; this.Size = new System.Drawing.Size(476, 283); this.ResumeLayout(false); }
public override void InvokeEvent(CodeEditBox owner) { if (Offest != 0) owner.textChanged(owner, new TextChangedEventArgs(Row, Offest - 1, 1)); }
public override void Undo(CodeEditBox owner) { owner.RemoveRows(Offest, Rows.Count()); }
public abstract void InvokeEvent(CodeEditBox owner);
public override void InvokeEvent(CodeEditBox owner) { foreach (var r in Rows) { if (r.Length != 0) owner.textChanged(owner, new TextChangedEventArgs(r, Offest)); } }
public override void Redo(CodeEditBox owner) { owner.InsertRows(Offest, Rows); }
public override void Undo(CodeEditBox owner) { owner.RemoveRow(Offest); }
public override void InvokeEvent(CodeEditBox owner) { if (Row.Length != 0) owner.textChanged(owner, new TextChangedEventArgs(Row)); }
public ErrorMessage(string message, int index, CodeEditBox block) { CodeBlock = block; Message = message; Row = index; }
public override void Undo(CodeEditBox owner) { Row.Remove(Offest, Value.Count()); }
public abstract void Undo(CodeEditBox owner);
public void Add(CodeEditBox.RowReadonlyCollection v) { ls.Add(v); Length += v.Count(); }
private void CodeEditBox_TextChanged(object sender, CodeEditBox.TextChangedEventArgs e) { Modified = true; //string text = e.Row.ToString(); //if(Refactor.GetLineOpType(text) == Type.Condition) //{ //} }