public override void InvokeEvent(CodeEditBox owner) { if (Offest != 0) { owner.textChanged(owner, new TextChangedEventArgs(Row, Offest - 1, 1)); } }
public override void InvokeEvent(CodeEditBox owner) { if (Row.Length != 0) { owner.textChanged(owner, new TextChangedEventArgs(Row)); } }
public override void InvokeEvent(CodeEditBox owner) { foreach (var r in Rows) { if (r.Length != 0) { owner.textChanged(owner, new TextChangedEventArgs(r, Offest)); } } }
private void InitializeComponent() { this.codeEditBox = new ASM.UI.CodeEditBox(); this.fillSetButton = new System.Windows.Forms.Button(); this.SuspendLayout(); // // caption // this.caption.Size = new System.Drawing.Size(447, 25); this.caption.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); // // 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); }
internal RowReadonlyCollection(CodeEditBox owner) { ls = owner.rows.Select(e => new RowReadonly(e)); }
public override void Undo(CodeEditBox owner) { Row.Remove(Offest); }
public override void Redo(CodeEditBox owner) { Row.Write(Value, Offest); }
public override void Redo(CodeEditBox owner) { base.Undo(owner); }
public override void Undo(CodeEditBox owner) { Row.Remove(Offest, Value.Count()); }
public abstract void InvokeEvent(CodeEditBox owner);
public abstract void Redo(CodeEditBox owner);
public override void InvokeEvent(CodeEditBox owner) { }
public override void Redo(CodeEditBox owner) { owner.InsertRows(Offest, Rows); }
public override void Undo(CodeEditBox owner) { owner.RemoveRows(Offest, Rows.Count()); }
public Row(CodeEditBox owner) { Owner = owner; }
public override void InvokeEvent(CodeEditBox owner) { owner.textChanged(owner, new TextChangedEventArgs(Row, Offest, Value.Count())); }
public Row(CodeEditBox owner, IEnumerable <char> text) : this(owner) { data.AddRange(text.Select(e => (Symbol)e)); }
public override void Undo(CodeEditBox owner) { owner.RemoveRow(Offest); }