Exemple #1
0
 public override void InvokeEvent(CodeEditBox owner)
 {
     if (Offest != 0)
     {
         owner.textChanged(owner, new TextChangedEventArgs(Row, Offest - 1, 1));
     }
 }
Exemple #2
0
 public override void InvokeEvent(CodeEditBox owner)
 {
     if (Row.Length != 0)
     {
         owner.textChanged(owner, new TextChangedEventArgs(Row));
     }
 }
Exemple #3
0
 public override void InvokeEvent(CodeEditBox owner)
 {
     foreach (var r in Rows)
     {
         if (r.Length != 0)
         {
             owner.textChanged(owner, new TextChangedEventArgs(r, Offest));
         }
     }
 }
Exemple #4
0
 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);
 }
Exemple #5
0
 internal RowReadonlyCollection(CodeEditBox owner)
 {
     ls = owner.rows.Select(e => new RowReadonly(e));
 }
Exemple #6
0
 public override void Undo(CodeEditBox owner)
 {
     Row.Remove(Offest);
 }
Exemple #7
0
 public override void Redo(CodeEditBox owner)
 {
     Row.Write(Value, Offest);
 }
Exemple #8
0
 public override void Redo(CodeEditBox owner)
 {
     base.Undo(owner);
 }
Exemple #9
0
 public override void Undo(CodeEditBox owner)
 {
     Row.Remove(Offest, Value.Count());
 }
Exemple #10
0
 public abstract void InvokeEvent(CodeEditBox owner);
Exemple #11
0
 public abstract void Redo(CodeEditBox owner);
Exemple #12
0
 public override void InvokeEvent(CodeEditBox owner)
 {
 }
Exemple #13
0
 public override void Redo(CodeEditBox owner)
 {
     owner.InsertRows(Offest, Rows);
 }
Exemple #14
0
 public override void Undo(CodeEditBox owner)
 {
     owner.RemoveRows(Offest, Rows.Count());
 }
Exemple #15
0
 public Row(CodeEditBox owner)
 {
     Owner = owner;
 }
Exemple #16
0
 public override void InvokeEvent(CodeEditBox owner)
 {
     owner.textChanged(owner, new TextChangedEventArgs(Row, Offest, Value.Count()));
 }
Exemple #17
0
 public Row(CodeEditBox owner, IEnumerable <char> text) : this(owner)
 {
     data.AddRange(text.Select(e => (Symbol)e));
 }
Exemple #18
0
 public override void Undo(CodeEditBox owner)
 {
     owner.RemoveRow(Offest);
 }