using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Runtime.CompilerServices; using System.Windows.Forms; using Microsoft.VisualBasic.CompilerServices; namespace Dongke.IBOSS.PRD.Framework.Controls { [DesignerGenerated] [EditorBrowsable(EditorBrowsableState.Never)] public class TextEdit_Express : Form { private IContainer components; [AccessedThroughProperty("TableLayoutPanel1")] private TableLayoutPanel _TableLayoutPanel1; [AccessedThroughProperty("OK_Button")] private Button _OK_Button; [AccessedThroughProperty("Cancel_Button")] private Button _Cancel_Button; [AccessedThroughProperty("Panel1")] private Panel _Panel1; [AccessedThroughProperty("TextBox1")] private TextBox _TextBox1; [AccessedThroughProperty("Button1")] private Button _Button1; [AccessedThroughProperty("ContextMenuStrip1")] private ContextMenuStrip _ContextMenuStrip1; [AccessedThroughProperty("页码ToolStripMenuItem")] private ToolStripMenuItem _页码ToolStripMenuItem; [AccessedThroughProperty("总页数ToolStripMenuItem")] private ToolStripMenuItem _总页数ToolStripMenuItem; [AccessedThroughProperty("当前日期ToolStripMenuItem")] private ToolStripMenuItem _当前日期ToolStripMenuItem; [AccessedThroughProperty("当前日期2ToolStripMenuItem")] private ToolStripMenuItem _当前日期2ToolStripMenuItem; [AccessedThroughProperty("当前年ToolStripMenuItem")] private ToolStripMenuItem _当前年ToolStripMenuItem; [AccessedThroughProperty("ToolStripMenuItem1")] private ToolStripMenuItem _ToolStripMenuItem1; [AccessedThroughProperty("ToolStripMenuItem2")] private ToolStripMenuItem _ToolStripMenuItem2; [AccessedThroughProperty("ToolStripMenuItem3")] private ToolStripMenuItem _ToolStripMenuItem3; [AccessedThroughProperty("ToolStripMenuItem4")] private ToolStripMenuItem _ToolStripMenuItem4; [AccessedThroughProperty("ToolStripMenuItem5")] private ToolStripMenuItem _ToolStripMenuItem5; [AccessedThroughProperty("Button2")] private Button _Button2; [AccessedThroughProperty("ContextMenuStrip2")] private ContextMenuStrip _ContextMenuStrip2; [AccessedThroughProperty("ToolStripSeparator1")] private ToolStripSeparator _ToolStripSeparator1; [AccessedThroughProperty("Button3")] private Button _Button3; [AccessedThroughProperty("ContextMenuStrip3")] private ContextMenuStrip _ContextMenuStrip3; [AccessedThroughProperty("Label1")] private Label _Label1; [AccessedThroughProperty("Label2")] private Label _Label2; [AccessedThroughProperty("Label3")] private Label _Label3; internal virtual TableLayoutPanel TableLayoutPanel1 { get { return _TableLayoutPanel1; } [MethodImpl(MethodImplOptions.Synchronized)] set { _TableLayoutPanel1 = value; } } internal virtual Button OK_Button { get { return _OK_Button; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = OK_Button_Click; if (_OK_Button != null) { _OK_Button.Click -= value2; } _OK_Button = value; if (_OK_Button != null) { _OK_Button.Click += value2; } } } internal virtual Button Cancel_Button { get { return _Cancel_Button; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = Cancel_Button_Click; if (_Cancel_Button != null) { _Cancel_Button.Click -= value2; } _Cancel_Button = value; if (_Cancel_Button != null) { _Cancel_Button.Click += value2; } } } internal virtual Panel Panel1 { get { return _Panel1; } [MethodImpl(MethodImplOptions.Synchronized)] set { _Panel1 = value; } } internal virtual TextBox TextBox1 { get { return _TextBox1; } [MethodImpl(MethodImplOptions.Synchronized)] set { _TextBox1 = value; } } internal virtual Button Button1 { get { return _Button1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = Button1_Click; if (_Button1 != null) { _Button1.Click -= value2; } _Button1 = value; if (_Button1 != null) { _Button1.Click += value2; } } } internal virtual ContextMenuStrip ContextMenuStrip1 { get { return _ContextMenuStrip1; } [MethodImpl(MethodImplOptions.Synchronized)] set { _ContextMenuStrip1 = value; } } internal virtual ToolStripMenuItem 页码ToolStripMenuItem { get { return _页码ToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_页码ToolStripMenuItem != null) { _页码ToolStripMenuItem.Click -= value2; } _页码ToolStripMenuItem = value; if (_页码ToolStripMenuItem != null) { _页码ToolStripMenuItem.Click += value2; } } } internal virtual ToolStripMenuItem 总页数ToolStripMenuItem { get { return _总页数ToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_总页数ToolStripMenuItem != null) { _总页数ToolStripMenuItem.Click -= value2; } _总页数ToolStripMenuItem = value; if (_总页数ToolStripMenuItem != null) { _总页数ToolStripMenuItem.Click += value2; } } } internal virtual ToolStripMenuItem 当前日期ToolStripMenuItem { get { return _当前日期ToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_当前日期ToolStripMenuItem != null) { _当前日期ToolStripMenuItem.Click -= value2; } _当前日期ToolStripMenuItem = value; if (_当前日期ToolStripMenuItem != null) { _当前日期ToolStripMenuItem.Click += value2; } } } internal virtual ToolStripMenuItem 当前日期2ToolStripMenuItem { get { return _当前日期2ToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_当前日期2ToolStripMenuItem != null) { _当前日期2ToolStripMenuItem.Click -= value2; } _当前日期2ToolStripMenuItem = value; if (_当前日期2ToolStripMenuItem != null) { _当前日期2ToolStripMenuItem.Click += value2; } } } internal virtual ToolStripMenuItem 当前年ToolStripMenuItem { get { return _当前年ToolStripMenuItem; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_当前年ToolStripMenuItem != null) { _当前年ToolStripMenuItem.Click -= value2; } _当前年ToolStripMenuItem = value; if (_当前年ToolStripMenuItem != null) { _当前年ToolStripMenuItem.Click += value2; } } } internal virtual ToolStripMenuItem ToolStripMenuItem1 { get { return _ToolStripMenuItem1; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_ToolStripMenuItem1 != null) { _ToolStripMenuItem1.Click -= value2; } _ToolStripMenuItem1 = value; if (_ToolStripMenuItem1 != null) { _ToolStripMenuItem1.Click += value2; } } } internal virtual ToolStripMenuItem ToolStripMenuItem2 { get { return _ToolStripMenuItem2; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_ToolStripMenuItem2 != null) { _ToolStripMenuItem2.Click -= value2; } _ToolStripMenuItem2 = value; if (_ToolStripMenuItem2 != null) { _ToolStripMenuItem2.Click += value2; } } } internal virtual ToolStripMenuItem ToolStripMenuItem3 { get { return _ToolStripMenuItem3; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_ToolStripMenuItem3 != null) { _ToolStripMenuItem3.Click -= value2; } _ToolStripMenuItem3 = value; if (_ToolStripMenuItem3 != null) { _ToolStripMenuItem3.Click += value2; } } } internal virtual ToolStripMenuItem ToolStripMenuItem4 { get { return _ToolStripMenuItem4; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_ToolStripMenuItem4 != null) { _ToolStripMenuItem4.Click -= value2; } _ToolStripMenuItem4 = value; if (_ToolStripMenuItem4 != null) { _ToolStripMenuItem4.Click += value2; } } } internal virtual ToolStripMenuItem ToolStripMenuItem5 { get { return _ToolStripMenuItem5; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = 页码ToolStripMenuItem_Click; if (_ToolStripMenuItem5 != null) { _ToolStripMenuItem5.Click -= value2; } _ToolStripMenuItem5 = value; if (_ToolStripMenuItem5 != null) { _ToolStripMenuItem5.Click += value2; } } } internal virtual Button Button2 { get { return _Button2; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = Button2_Click; if (_Button2 != null) { _Button2.Click -= value2; } _Button2 = value; if (_Button2 != null) { _Button2.Click += value2; } } } internal virtual ContextMenuStrip ContextMenuStrip2 { get { return _ContextMenuStrip2; } [MethodImpl(MethodImplOptions.Synchronized)] set { _ContextMenuStrip2 = value; } } internal virtual ToolStripSeparator ToolStripSeparator1 { get { return _ToolStripSeparator1; } [MethodImpl(MethodImplOptions.Synchronized)] set { _ToolStripSeparator1 = value; } } internal virtual Button Button3 { get { return _Button3; } [MethodImpl(MethodImplOptions.Synchronized)] set { EventHandler value2 = Button3_Click; if (_Button3 != null) { _Button3.Click -= value2; } _Button3 = value; if (_Button3 != null) { _Button3.Click += value2; } } } internal virtual ContextMenuStrip ContextMenuStrip3 { get { return _ContextMenuStrip3; } [MethodImpl(MethodImplOptions.Synchronized)] set { _ContextMenuStrip3 = value; } } internal virtual Label Label1 { get { return _Label1; } [MethodImpl(MethodImplOptions.Synchronized)] set { _Label1 = value; } } internal virtual Label Label2 { get { return _Label2; } [MethodImpl(MethodImplOptions.Synchronized)] set { _Label2 = value; } } internal virtual Label Label3 { get { return _Label3; } [MethodImpl(MethodImplOptions.Synchronized)] set { _Label3 = value; } } public TextEdit_Express() { base.Load += TextEdit_Express_Load; InitializeComponent(); } [DebuggerNonUserCode] protected override void Dispose(bool disposing) { try { if (disposing && components != null) { components.Dispose(); } } finally { base.Dispose(disposing); } } [System.Diagnostics.DebuggerStepThrough] private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.OK_Button = new System.Windows.Forms.Button(); this.Cancel_Button = new System.Windows.Forms.Button(); this.Panel1 = new System.Windows.Forms.Panel(); this.TextBox1 = new System.Windows.Forms.TextBox(); this.ContextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.页码ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.总页数ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.当前日期ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.当前日期2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.当前年ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem3 = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem4 = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripMenuItem5 = new System.Windows.Forms.ToolStripMenuItem(); this.ToolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.Button1 = new System.Windows.Forms.Button(); this.Button2 = new System.Windows.Forms.Button(); this.ContextMenuStrip2 = new System.Windows.Forms.ContextMenuStrip(this.components); this.Button3 = new System.Windows.Forms.Button(); this.ContextMenuStrip3 = new System.Windows.Forms.ContextMenuStrip(this.components); this.Label1 = new System.Windows.Forms.Label(); this.Label2 = new System.Windows.Forms.Label(); this.Label3 = new System.Windows.Forms.Label(); this.TableLayoutPanel1.SuspendLayout(); this.Panel1.SuspendLayout(); this.ContextMenuStrip1.SuspendLayout(); base.SuspendLayout(); this.TableLayoutPanel1.Anchor = System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right; this.TableLayoutPanel1.ColumnCount = 2; this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f)); this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f)); this.TableLayoutPanel1.Controls.Add(this.OK_Button, 0, 0); this.TableLayoutPanel1.Controls.Add(this.Cancel_Button, 1, 0); System.Windows.Forms.Control tableLayoutPanel = this.TableLayoutPanel1; System.Drawing.Point location = new System.Drawing.Point(297, 203); tableLayoutPanel.Location = location; this.TableLayoutPanel1.Name = "TableLayoutPanel1"; this.TableLayoutPanel1.RowCount = 1; this.TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f)); System.Windows.Forms.Control tableLayoutPanel2 = this.TableLayoutPanel1; System.Drawing.Size size = new System.Drawing.Size(146, 27); tableLayoutPanel2.Size = size; this.TableLayoutPanel1.TabIndex = 0; this.OK_Button.Anchor = System.Windows.Forms.AnchorStyles.None; System.Windows.Forms.Control oK_Button = this.OK_Button; location = new System.Drawing.Point(3, 3); oK_Button.Location = location; this.OK_Button.Name = "OK_Button"; System.Windows.Forms.Control oK_Button2 = this.OK_Button; size = new System.Drawing.Size(67, 21); oK_Button2.Size = size; this.OK_Button.TabIndex = 0; this.OK_Button.Text = "确定"; this.Cancel_Button.Anchor = System.Windows.Forms.AnchorStyles.None; this.Cancel_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel; System.Windows.Forms.Control cancel_Button = this.Cancel_Button; location = new System.Drawing.Point(76, 3); cancel_Button.Location = location; this.Cancel_Button.Name = "Cancel_Button"; System.Windows.Forms.Control cancel_Button2 = this.Cancel_Button; size = new System.Drawing.Size(67, 21); cancel_Button2.Size = size; this.Cancel_Button.TabIndex = 1; this.Cancel_Button.Text = "取消"; this.Panel1.Controls.Add(this.TextBox1); this.Panel1.Dock = System.Windows.Forms.DockStyle.Top; System.Windows.Forms.Control panel = this.Panel1; location = new System.Drawing.Point(0, 0); panel.Location = location; this.Panel1.Name = "Panel1"; System.Windows.Forms.Control panel2 = this.Panel1; size = new System.Drawing.Size(443, 193); panel2.Size = size; this.Panel1.TabIndex = 1; this.TextBox1.AcceptsReturn = true; this.TextBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.TextBox1.Font = new System.Drawing.Font("宋体", 14.25f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134); this.TextBox1.HideSelection = false; System.Windows.Forms.Control textBox = this.TextBox1; location = new System.Drawing.Point(0, 0); textBox.Location = location; this.TextBox1.Multiline = true; this.TextBox1.Name = "TextBox1"; this.TextBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; System.Windows.Forms.Control textBox2 = this.TextBox1; size = new System.Drawing.Size(443, 193); textBox2.Size = size; this.TextBox1.TabIndex = 1; this.ContextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[11] { this.页码ToolStripMenuItem, this.总页数ToolStripMenuItem, this.当前日期ToolStripMenuItem, this.当前日期2ToolStripMenuItem, this.当前年ToolStripMenuItem, this.ToolStripMenuItem1, this.ToolStripMenuItem2, this.ToolStripMenuItem3, this.ToolStripMenuItem4, this.ToolStripMenuItem5, this.ToolStripSeparator1 }); this.ContextMenuStrip1.Name = "ContextMenuStrip1"; System.Windows.Forms.Control contextMenuStrip = this.ContextMenuStrip1; size = new System.Drawing.Size(129, 230); contextMenuStrip.Size = size; this.页码ToolStripMenuItem.Name = "页码ToolStripMenuItem"; System.Windows.Forms.ToolStripItem toolStripItem = this.页码ToolStripMenuItem; size = new System.Drawing.Size(128, 22); toolStripItem.Size = size; this.页码ToolStripMenuItem.Text = "页码"; this.总页数ToolStripMenuItem.Name = "总页数ToolStripMenuItem"; System.Windows.Forms.ToolStripItem toolStripItem2 = this.总页数ToolStripMenuItem; size = new System.Drawing.Size(128, 22); toolStripItem2.Size = size; this.总页数ToolStripMenuItem.Text = "总页数"; this.当前日期ToolStripMenuItem.Name = "当前日期ToolStripMenuItem"; System.Windows.Forms.ToolStripItem toolStripItem3 = this.当前日期ToolStripMenuItem; size = new System.Drawing.Size(128, 22); toolStripItem3.Size = size; this.当前日期ToolStripMenuItem.Text = "当前日期"; this.当前日期ToolStripMenuItem.ToolTipText = "插入当前日期,以-号分格"; this.当前日期2ToolStripMenuItem.Name = "当前日期2ToolStripMenuItem"; System.Windows.Forms.ToolStripItem toolStripItem4 = this.当前日期2ToolStripMenuItem; size = new System.Drawing.Size(128, 22); toolStripItem4.Size = size; this.当前日期2ToolStripMenuItem.Text = "当前日期2"; this.当前日期2ToolStripMenuItem.ToolTipText = "长日期格式"; this.当前年ToolStripMenuItem.Name = "当前年ToolStripMenuItem"; System.Windows.Forms.ToolStripItem toolStripItem5 = this.当前年ToolStripMenuItem; size = new System.Drawing.Size(128, 22); toolStripItem5.Size = size; this.当前年ToolStripMenuItem.Text = "当前年"; this.ToolStripMenuItem1.Name = "ToolStripMenuItem1"; System.Windows.Forms.ToolStripItem toolStripMenuItem = this.ToolStripMenuItem1; size = new System.Drawing.Size(128, 22); toolStripMenuItem.Size = size; this.ToolStripMenuItem1.Text = "当前月"; this.ToolStripMenuItem2.Name = "ToolStripMenuItem2"; System.Windows.Forms.ToolStripItem toolStripMenuItem2 = this.ToolStripMenuItem2; size = new System.Drawing.Size(128, 22); toolStripMenuItem2.Size = size; this.ToolStripMenuItem2.Text = "当前日"; this.ToolStripMenuItem3.Name = "ToolStripMenuItem3"; System.Windows.Forms.ToolStripItem toolStripMenuItem3 = this.ToolStripMenuItem3; size = new System.Drawing.Size(128, 22); toolStripMenuItem3.Size = size; this.ToolStripMenuItem3.Text = "当前时间"; this.ToolStripMenuItem4.Name = "ToolStripMenuItem4"; System.Windows.Forms.ToolStripItem toolStripMenuItem4 = this.ToolStripMenuItem4; size = new System.Drawing.Size(128, 22); toolStripMenuItem4.Size = size; this.ToolStripMenuItem4.Text = "行号"; this.ToolStripMenuItem4.ToolTipText = "表格详细数据行号,从1开始计算"; this.ToolStripMenuItem5.Name = "ToolStripMenuItem5"; System.Windows.Forms.ToolStripItem toolStripMenuItem5 = this.ToolStripMenuItem5; size = new System.Drawing.Size(128, 22); toolStripMenuItem5.Size = size; this.ToolStripMenuItem5.Text = "页行号"; this.ToolStripMenuItem5.ToolTipText = "每页从1重新开始计算的行号"; this.ToolStripSeparator1.Name = "ToolStripSeparator1"; System.Windows.Forms.ToolStripItem toolStripSeparator = this.ToolStripSeparator1; size = new System.Drawing.Size(125, 6); toolStripSeparator.Size = size; System.Windows.Forms.Control button = this.Button1; location = new System.Drawing.Point(17, 203); button.Location = location; this.Button1.Name = "Button1"; System.Windows.Forms.Control button2 = this.Button1; size = new System.Drawing.Size(106, 23); button2.Size = size; this.Button1.TabIndex = 2; this.Button1.Text = "插入系统变量.…"; this.Button1.UseVisualStyleBackColor = true; System.Windows.Forms.Control button3 = this.Button2; location = new System.Drawing.Point(133, 203); button3.Location = location; this.Button2.Name = "Button2"; System.Windows.Forms.Control button4 = this.Button2; size = new System.Drawing.Size(128, 23); button4.Size = size; this.Button2.TabIndex = 2; this.Button2.Text = "插入自定义变量.…"; this.Button2.UseVisualStyleBackColor = true; this.ContextMenuStrip2.Name = "ContextMenuStrip2"; System.Windows.Forms.Control contextMenuStrip2 = this.ContextMenuStrip2; size = new System.Drawing.Size(61, 4); contextMenuStrip2.Size = size; System.Windows.Forms.Control button5 = this.Button3; location = new System.Drawing.Point(17, 230); button5.Location = location; this.Button3.Name = "Button3"; System.Windows.Forms.Control button6 = this.Button3; size = new System.Drawing.Size(106, 23); button6.Size = size; this.Button3.TabIndex = 2; this.Button3.Text = "插入字段变量.…"; this.Button3.UseVisualStyleBackColor = true; this.ContextMenuStrip3.Name = "ContextMenuStrip3"; System.Windows.Forms.Control contextMenuStrip3 = this.ContextMenuStrip3; size = new System.Drawing.Size(61, 4); contextMenuStrip3.Size = size; System.Windows.Forms.Control label = this.Label1; location = new System.Drawing.Point(10, 258); label.Location = location; this.Label1.Name = "Label1"; System.Windows.Forms.Control label2 = this.Label1; size = new System.Drawing.Size(421, 64); label2.Size = size; this.Label1.TabIndex = 3; this.Label1.Text = "注1:在表达式中可进行加、减、乘、除运算及带括号的运算(如果有系统变量、自定义变量及字段变量,则会先把变量替换为相应的值后再进行计算),还可以使用大部分.NET自身的函数及自定义函数(请参见帮助文件)。但请注意,如果使用了除 加、减、乘、除运算及带括号的运算外的其他运算及涉及到函数,程序将用动态编译的办法来求表达式的值,此时速度会比较慢。"; System.Windows.Forms.Control label3 = this.Label2; location = new System.Drawing.Point(14, 327); label3.Location = location; this.Label2.Name = "Label2"; System.Windows.Forms.Control label4 = this.Label2; size = new System.Drawing.Size(413, 25); label4.Size = size; this.Label2.TabIndex = 3; this.Label2.Text = "注2:如果不同类型的变量名称存在相同的情况 ,则程序替换变量的顺序是:先字段变量,再自定义变量,最后才是系统变量。"; System.Windows.Forms.Control label5 = this.Label3; location = new System.Drawing.Point(14, 362); label5.Location = location; this.Label3.Name = "Label3"; System.Windows.Forms.Control label6 = this.Label3; size = new System.Drawing.Size(413, 25); label6.Size = size; this.Label3.TabIndex = 3; this.Label3.Text = "注3:如果表达式不合法,则不会进行计算,而是直接显示文本(设计时不会检测表达式的合法性)。"; base.AcceptButton = this.OK_Button; System.Drawing.SizeF sizeF = new System.Drawing.SizeF(6f, 12f); base.AutoScaleDimensions = sizeF; base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; base.CancelButton = this.Cancel_Button; size = new System.Drawing.Size(443, 392); base.ClientSize = size; base.Controls.Add(this.Label1); base.Controls.Add(this.Panel1); base.Controls.Add(this.Button2); base.Controls.Add(this.Label2); base.Controls.Add(this.Button3); base.Controls.Add(this.Button1); base.Controls.Add(this.Label3); base.Controls.Add(this.TableLayoutPanel1); base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "TextEdit_Express"; base.ShowInTaskbar = false; base.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "表达式编辑器"; this.TableLayoutPanel1.ResumeLayout(false); this.Panel1.ResumeLayout(false); this.Panel1.PerformLayout(); this.ContextMenuStrip1.ResumeLayout(false); base.ResumeLayout(false); } private void OK_Button_Click(object sender, EventArgs e) { base.DialogResult = DialogResult.OK; Close(); } private void Cancel_Button_Click(object sender, EventArgs e) { base.DialogResult = DialogResult.Cancel; Close(); } private void Button1_Click(object sender, EventArgs e) { ContextMenuStrip1.Show((Control)sender, 0, 0); } private void 页码ToolStripMenuItem_Click(object sender, EventArgs e) { string text = ((ToolStripMenuItem)sender).Text; text = "[" + text + "]"; TextBox1.Paste(text); TextBox1.Focus(); } private void Button2_Click(object sender, EventArgs e) { ContextMenuStrip2.Show((Control)sender, 0, 0); } private void TextEdit_Express_Load(object sender, EventArgs e) { checked { if (mbsjmodule.FieldsString2 == null) { Button2.Enabled = false; } else if (mbsjmodule.FieldsString2.GetLength(0) < 0) { Button2.Enabled = false; } else { Button2.Enabled = true; int num = 0; int num2 = mbsjmodule.FieldsString2.GetLength(0) - 1; for (int i = num; i <= num2; i++) { if (Operators.CompareString(mbsjmodule.FieldsString2[i, 0], "", TextCompare: false) != 0) { ToolStripItem toolStripItem = ContextMenuStrip2.Items.Add(mbsjmodule.FieldsString2[i, 0]); toolStripItem.Click += 页码ToolStripMenuItem_Click; } } if (ContextMenuStrip2.Items.Count <= 0) { Button2.Enabled = false; } } if (mbsjmodule.FieldsString == null) { Button3.Enabled = false; return; } if (mbsjmodule.FieldsString.Length < 0) { Button3.Enabled = false; return; } Button3.Enabled = true; int num3 = 0; int num4 = mbsjmodule.FieldsString.Length - 1; for (int j = num3; j <= num4; j++) { ToolStripItem toolStripItem2 = ContextMenuStrip3.Items.Add(mbsjmodule.FieldsString[j]); toolStripItem2.Click += 页码ToolStripMenuItem_Click; } } } private void Button3_Click(object sender, EventArgs e) { ContextMenuStrip3.Show((Control)sender, 0, 0); } } }