Beispiel #1
0
 // 插入指令:注释
 private void button9_Click(object sender, EventArgs e)
 {
     // 检查这个节点可否插入
     if (this.isAbleInsert() == false)
     {
         return;
     }
     this.moveCursorToPoint(this, new Point(this.Size.Width / 2, this.Size.Height / 2), Cursor.Position, 170, 150);
     CodeInputForm cif = new CodeInputForm("注释");
     cif.ShowDialog(this);
 }
Beispiel #2
0
 // 菜单->宏定义
 private void 宏定义ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     CodeInputForm cif = new CodeInputForm("宏定义", core.getMarcos());
     cif.ShowDialog(this);
 }
Beispiel #3
0
 // 宏定义按钮
 private void button3_Click(object sender, EventArgs e)
 {
     this.moveCursorToPoint(this, new Point(this.Size.Width / 2, this.Size.Height / 2), Cursor.Position, 170, 150);
     CodeInputForm cif = new CodeInputForm("宏定义", core.getMarcos());
     cif.ShowDialog(this);
 }