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