| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898 |
- 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 : 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;
- 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;
- }
- }
- public TextEdit()
- {
- base.Load += TextEdit_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.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, 201);
- 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, 55);
- label2.Size = size;
- this.Label1.TabIndex = 3;
- this.Label1.Text = "注1:此属性可以有纯文本及文本与系统变量、自定义变量、字段变量的任意组合,但请注意,在打印预览时,程序仅对系统变量、自定义变量、字段变量进行简单的替换操作。而不会进行表达式的计算操作,如果需要对表达式进行计算,请使用\"表达式\"控件。";
- System.Windows.Forms.Control label3 = this.Label2;
- location = new System.Drawing.Point(14, 316);
- 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:如果不同类型的变量名称存在相同的情况 ,则程序替换变量的顺序是:先字段变量,再自定义变量,最后才是系统变量。";
- 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, 346);
- 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.TableLayoutPanel1);
- base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
- base.MaximizeBox = false;
- base.MinimizeBox = false;
- base.Name = "TextEdit";
- 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_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;
- string[] array = new string[mbsjmodule.FieldsString2.GetLength(0) - 1 + 1];
- int num = 0;
- int num2 = mbsjmodule.FieldsString2.GetLength(0) - 1;
- for (int i = num; i <= num2; i++)
- {
- array[i] = mbsjmodule.FieldsString2[i, 0];
- }
- Array.Sort(array);
- int num3 = 0;
- int num4 = array.Length - 1;
- for (int j = num3; j <= num4; j++)
- {
- if (Operators.CompareString(array[j], "", TextCompare: false) != 0)
- {
- ToolStripItem toolStripItem = ContextMenuStrip2.Items.Add(array[j]);
- 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;
- Array.Sort(mbsjmodule.FieldsString);
- int num5 = 0;
- int num6 = mbsjmodule.FieldsString.Length - 1;
- for (int k = num5; k <= num6; k++)
- {
- ToolStripItem toolStripItem2 = ContextMenuStrip3.Items.Add(mbsjmodule.FieldsString[k]);
- toolStripItem2.Click += 页码ToolStripMenuItem_Click;
- }
- }
- }
- private void Button3_Click(object sender, EventArgs e)
- {
- ContextMenuStrip3.Show((Control)sender, 0, 0);
- }
- }
- }
|