Example #1
0
 public override void Redo(CodeEditBox owner)
 {
     Row.Write(Value, Offest);
 }
Example #2
0
 public override void Undo(CodeEditBox owner)
 {
     Row.Remove(Offest);
 }
Example #3
0
 public override void InvokeEvent(CodeEditBox owner)
 {
     owner.textChanged(owner, new TextChangedEventArgs(Row, Offest, Value.Count()));
 }
Example #4
0
 public override void InvokeEvent(CodeEditBox owner)
 {
 }
Example #5
0
 public override void Undo(CodeEditBox owner)
 {
     base.Redo(owner);
 }
Example #6
0
 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);
 }
Example #7
0
 public override void InvokeEvent(CodeEditBox owner)
 {
     if (Offest != 0)
         owner.textChanged(owner, new TextChangedEventArgs(Row, Offest - 1, 1));
 }
Example #8
0
 public override void Undo(CodeEditBox owner)
 {
     owner.RemoveRows(Offest, Rows.Count());
 }
Example #9
0
 public abstract void InvokeEvent(CodeEditBox owner);
Example #10
0
 public override void InvokeEvent(CodeEditBox owner)
 {
     foreach (var r in Rows)
     {
         if (r.Length != 0)
             owner.textChanged(owner, new TextChangedEventArgs(r, Offest));
     }
 }
Example #11
0
 public override void Redo(CodeEditBox owner)
 {
     owner.InsertRows(Offest, Rows);
 }
Example #12
0
 public override void Undo(CodeEditBox owner)
 {
     owner.RemoveRow(Offest);
 }
Example #13
0
 public override void InvokeEvent(CodeEditBox owner)
 {
     if (Row.Length != 0)
         owner.textChanged(owner, new TextChangedEventArgs(Row));
 }
Example #14
0
 public ErrorMessage(string message, int index, CodeEditBox block)
 {
     CodeBlock = block;
     Message = message;
     Row = index;
 }
Example #15
0
 public override void Undo(CodeEditBox owner)
 {
     Row.Remove(Offest, Value.Count());
 }
Example #16
0
 public abstract void Undo(CodeEditBox owner);
Example #17
0
 public void Add(CodeEditBox.RowReadonlyCollection v)
 {
     ls.Add(v);
     Length += v.Count();
 }
Example #18
0
 private void CodeEditBox_TextChanged(object sender, CodeEditBox.TextChangedEventArgs e)
 {
     Modified = true;
     //string text = e.Row.ToString();
     //if(Refactor.GetLineOpType(text) == Type.Condition)
     //{
     //}
 }