|
|
@@ -28,14 +28,12 @@
|
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
+ this.components = new System.ComponentModel.Container();
|
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
|
- this.button3 = new System.Windows.Forms.Button();
|
|
|
- this.button4 = new System.Windows.Forms.Button();
|
|
|
- this.txtMsg = new System.Windows.Forms.RichTextBox();
|
|
|
- this.txtIP = new System.Windows.Forms.TextBox();
|
|
|
- this.txtPORT = new System.Windows.Forms.TextBox();
|
|
|
- this.enterTextBox2 = new UAS_MES.CustomControl.TextBoxWithIcon.EnterTextBox();
|
|
|
+ this.document = new O2S.Components.PDFView4NET.PDFDocument(this.components);
|
|
|
+ this.pageView = new O2S.Components.PDFView4NET.PDFPageView();
|
|
|
+ this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// button1
|
|
|
@@ -58,84 +56,47 @@
|
|
|
this.button2.Text = "button2";
|
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
- // button3
|
|
|
- //
|
|
|
- this.button3.Location = new System.Drawing.Point(424, 198);
|
|
|
- this.button3.Margin = new System.Windows.Forms.Padding(4);
|
|
|
- this.button3.Name = "button3";
|
|
|
- this.button3.Size = new System.Drawing.Size(100, 29);
|
|
|
- this.button3.TabIndex = 0;
|
|
|
- this.button3.Text = "OPEN";
|
|
|
- this.button3.UseVisualStyleBackColor = true;
|
|
|
- this.button3.Click += new System.EventHandler(this.button3_Click_1);
|
|
|
- //
|
|
|
- // button4
|
|
|
- //
|
|
|
- this.button4.Location = new System.Drawing.Point(547, 198);
|
|
|
- this.button4.Margin = new System.Windows.Forms.Padding(4);
|
|
|
- this.button4.Name = "button4";
|
|
|
- this.button4.Size = new System.Drawing.Size(100, 29);
|
|
|
- this.button4.TabIndex = 2;
|
|
|
- this.button4.Text = "Send";
|
|
|
- this.button4.UseVisualStyleBackColor = true;
|
|
|
- this.button4.Click += new System.EventHandler(this.button4_Click);
|
|
|
- //
|
|
|
- // txtMsg
|
|
|
- //
|
|
|
- this.txtMsg.Location = new System.Drawing.Point(424, 320);
|
|
|
- this.txtMsg.Name = "txtMsg";
|
|
|
- this.txtMsg.Size = new System.Drawing.Size(283, 160);
|
|
|
- this.txtMsg.TabIndex = 7;
|
|
|
- this.txtMsg.Text = "";
|
|
|
- //
|
|
|
- // txtIP
|
|
|
- //
|
|
|
- this.txtIP.Location = new System.Drawing.Point(424, 270);
|
|
|
- this.txtIP.Name = "txtIP";
|
|
|
- this.txtIP.Size = new System.Drawing.Size(136, 25);
|
|
|
- this.txtIP.TabIndex = 8;
|
|
|
- this.txtIP.Text = "127.0.0.1";
|
|
|
- //
|
|
|
- // txtPORT
|
|
|
- //
|
|
|
- this.txtPORT.Location = new System.Drawing.Point(607, 270);
|
|
|
- this.txtPORT.Name = "txtPORT";
|
|
|
- this.txtPORT.Size = new System.Drawing.Size(100, 25);
|
|
|
- this.txtPORT.TabIndex = 9;
|
|
|
- this.txtPORT.Text = "8080";
|
|
|
- //
|
|
|
- // enterTextBox2
|
|
|
- //
|
|
|
- this.enterTextBox2.AllPower = null;
|
|
|
- this.enterTextBox2.BackColor = System.Drawing.Color.White;
|
|
|
- this.enterTextBox2.ID = null;
|
|
|
- this.enterTextBox2.Location = new System.Drawing.Point(753, 270);
|
|
|
- this.enterTextBox2.Name = "enterTextBox2";
|
|
|
- this.enterTextBox2.Power = null;
|
|
|
- this.enterTextBox2.Size = new System.Drawing.Size(196, 25);
|
|
|
- this.enterTextBox2.Str = null;
|
|
|
- this.enterTextBox2.Str1 = null;
|
|
|
- this.enterTextBox2.Str2 = null;
|
|
|
- this.enterTextBox2.TabIndex = 10;
|
|
|
+ // document
|
|
|
+ //
|
|
|
+ this.document.Metadata = null;
|
|
|
+ this.document.PageLayout = O2S.Components.PDFView4NET.PDFPageLayout.SinglePage;
|
|
|
+ this.document.PageMode = O2S.Components.PDFView4NET.PDFPageMode.UseNone;
|
|
|
+ //
|
|
|
+ // pageView
|
|
|
+ //
|
|
|
+ this.pageView.AutoScroll = true;
|
|
|
+ this.pageView.BackColor = System.Drawing.SystemColors.Window;
|
|
|
+ this.pageView.DefaultEllipseAnnotationBorderWidth = 1D;
|
|
|
+ this.pageView.DefaultInkAnnotationWidth = 1D;
|
|
|
+ this.pageView.DefaultRectangleAnnotationBorderWidth = 1D;
|
|
|
+ this.pageView.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
+ this.pageView.Document = this.document;
|
|
|
+ this.pageView.DownscaleLargeImages = false;
|
|
|
+ this.pageView.EnableRepeatedKeys = false;
|
|
|
+ this.pageView.Location = new System.Drawing.Point(0, 0);
|
|
|
+ this.pageView.Name = "pageView";
|
|
|
+ this.pageView.PageDisplayLayout = O2S.Components.PDFView4NET.PDFPageDisplayLayout.OneColumn;
|
|
|
+ this.pageView.PageNumber = 0;
|
|
|
+ this.pageView.RenderingProgressColor = System.Drawing.Color.Empty;
|
|
|
+ this.pageView.RequiredFormFieldHighlightColor = System.Drawing.Color.Empty;
|
|
|
+ this.pageView.ScrollPosition = new System.Drawing.Point(0, 0);
|
|
|
+ this.pageView.Size = new System.Drawing.Size(929, 590);
|
|
|
+ this.pageView.SubstituteFonts = null;
|
|
|
+ this.pageView.TabIndex = 2;
|
|
|
+ this.pageView.VerticalPageSpacing = 5;
|
|
|
+ this.pageView.WorkMode = O2S.Components.PDFView4NET.UserInteractiveWorkMode.PanAndScan;
|
|
|
//
|
|
|
// Form1
|
|
|
//
|
|
|
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F);
|
|
|
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
- this.ClientSize = new System.Drawing.Size(1239, 738);
|
|
|
- this.Controls.Add(this.enterTextBox2);
|
|
|
- this.Controls.Add(this.txtPORT);
|
|
|
- this.Controls.Add(this.txtIP);
|
|
|
- this.Controls.Add(this.txtMsg);
|
|
|
- this.Controls.Add(this.button4);
|
|
|
- this.Controls.Add(this.button3);
|
|
|
- this.Margin = new System.Windows.Forms.Padding(4);
|
|
|
+ this.ClientSize = new System.Drawing.Size(929, 590);
|
|
|
+ this.Controls.Add(this.pageView);
|
|
|
this.Name = "Form1";
|
|
|
this.Tag = "123123";
|
|
|
this.Text = "Form1";
|
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
this.ResumeLayout(false);
|
|
|
- this.PerformLayout();
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -146,11 +107,8 @@
|
|
|
private CustomControl.ButtonUtil.NormalButton normalButton1;
|
|
|
private CustomControl.TextBoxWithIcon.EnterTextBox enterTextBox1;
|
|
|
private CustomControl.SetLoading.LoadingCircle loadingCircle1;
|
|
|
- private System.Windows.Forms.Button button3;
|
|
|
- private System.Windows.Forms.Button button4;
|
|
|
- private System.Windows.Forms.RichTextBox txtMsg;
|
|
|
- private System.Windows.Forms.TextBox txtIP;
|
|
|
- private System.Windows.Forms.TextBox txtPORT;
|
|
|
- private CustomControl.TextBoxWithIcon.EnterTextBox enterTextBox2;
|
|
|
+ private O2S.Components.PDFView4NET.PDFDocument document;
|
|
|
+ private O2S.Components.PDFView4NET.PDFPageView pageView;
|
|
|
+ private System.Windows.Forms.Timer timer1;
|
|
|
}
|
|
|
}
|