⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolwnd.cs

📁 三汇pcifax卡的demo用csharp写的
💻 CS
📖 第 1 页 / 共 2 页
字号:
			this.label15.Location = new System.Drawing.Point(32, 224);
			this.label15.Name = "label15";
			this.label15.Size = new System.Drawing.Size(48, 21);
			this.label15.TabIndex = 24;
			this.label15.Text = "szTime";
			// 
			// m_txtTimeY
			// 
			this.m_txtTimeY.Location = new System.Drawing.Point(248, 192);
			this.m_txtTimeY.Name = "m_txtTimeY";
			this.m_txtTimeY.Size = new System.Drawing.Size(40, 21);
			this.m_txtTimeY.TabIndex = 23;
			this.m_txtTimeY.Text = "";
			// 
			// label14
			// 
			this.label14.Location = new System.Drawing.Point(184, 192);
			this.label14.Name = "label14";
			this.label14.Size = new System.Drawing.Size(48, 21);
			this.label14.TabIndex = 22;
			this.label14.Text = "nTimeY";
			// 
			// m_txtTimeX
			// 
			this.m_txtTimeX.Location = new System.Drawing.Point(96, 192);
			this.m_txtTimeX.Name = "m_txtTimeX";
			this.m_txtTimeX.Size = new System.Drawing.Size(40, 21);
			this.m_txtTimeX.TabIndex = 21;
			this.m_txtTimeX.Text = "";
			// 
			// label13
			// 
			this.label13.Location = new System.Drawing.Point(32, 192);
			this.label13.Name = "label13";
			this.label13.Size = new System.Drawing.Size(48, 21);
			this.label13.TabIndex = 20;
			this.label13.Text = "nTimeX";
			// 
			// m_txtTo
			// 
			this.m_txtTo.Location = new System.Drawing.Point(248, 160);
			this.m_txtTo.Name = "m_txtTo";
			this.m_txtTo.Size = new System.Drawing.Size(40, 21);
			this.m_txtTo.TabIndex = 19;
			this.m_txtTo.Text = "";
			// 
			// label12
			// 
			this.label12.Location = new System.Drawing.Point(184, 160);
			this.label12.Name = "label12";
			this.label12.Size = new System.Drawing.Size(48, 21);
			this.label12.TabIndex = 18;
			this.label12.Text = "szTo";
			// 
			// m_txtToY
			// 
			this.m_txtToY.Location = new System.Drawing.Point(96, 160);
			this.m_txtToY.Name = "m_txtToY";
			this.m_txtToY.Size = new System.Drawing.Size(40, 21);
			this.m_txtToY.TabIndex = 17;
			this.m_txtToY.Text = "";
			// 
			// label11
			// 
			this.label11.Location = new System.Drawing.Point(32, 160);
			this.label11.Name = "label11";
			this.label11.Size = new System.Drawing.Size(48, 21);
			this.label11.TabIndex = 16;
			this.label11.Text = "nToY";
			// 
			// m_txtToX
			// 
			this.m_txtToX.Location = new System.Drawing.Point(248, 128);
			this.m_txtToX.Name = "m_txtToX";
			this.m_txtToX.Size = new System.Drawing.Size(40, 21);
			this.m_txtToX.TabIndex = 15;
			this.m_txtToX.Text = "";
			// 
			// label10
			// 
			this.label10.Location = new System.Drawing.Point(184, 128);
			this.label10.Name = "label10";
			this.label10.Size = new System.Drawing.Size(48, 21);
			this.label10.TabIndex = 14;
			this.label10.Text = "nToX";
			// 
			// m_txtSub
			// 
			this.m_txtSub.Location = new System.Drawing.Point(96, 128);
			this.m_txtSub.Name = "m_txtSub";
			this.m_txtSub.Size = new System.Drawing.Size(40, 21);
			this.m_txtSub.TabIndex = 13;
			this.m_txtSub.Text = "";
			// 
			// label9
			// 
			this.label9.Location = new System.Drawing.Point(32, 128);
			this.label9.Name = "label9";
			this.label9.Size = new System.Drawing.Size(48, 21);
			this.label9.TabIndex = 12;
			this.label9.Text = "szSub";
			// 
			// m_txtSubY
			// 
			this.m_txtSubY.Location = new System.Drawing.Point(248, 96);
			this.m_txtSubY.Name = "m_txtSubY";
			this.m_txtSubY.Size = new System.Drawing.Size(40, 21);
			this.m_txtSubY.TabIndex = 11;
			this.m_txtSubY.Text = "";
			// 
			// label8
			// 
			this.label8.Location = new System.Drawing.Point(184, 96);
			this.label8.Name = "label8";
			this.label8.Size = new System.Drawing.Size(48, 21);
			this.label8.TabIndex = 10;
			this.label8.Text = "nSubY";
			// 
			// m_txtSubX
			// 
			this.m_txtSubX.Location = new System.Drawing.Point(96, 96);
			this.m_txtSubX.Name = "m_txtSubX";
			this.m_txtSubX.Size = new System.Drawing.Size(40, 21);
			this.m_txtSubX.TabIndex = 9;
			this.m_txtSubX.Text = "";
			// 
			// label7
			// 
			this.label7.Location = new System.Drawing.Point(32, 96);
			this.label7.Name = "label7";
			this.label7.Size = new System.Drawing.Size(48, 21);
			this.label7.TabIndex = 8;
			this.label7.Text = "nSubX";
			// 
			// m_txtFromY
			// 
			this.m_txtFromY.Location = new System.Drawing.Point(248, 64);
			this.m_txtFromY.Name = "m_txtFromY";
			this.m_txtFromY.Size = new System.Drawing.Size(40, 21);
			this.m_txtFromY.TabIndex = 7;
			this.m_txtFromY.Text = "";
			// 
			// label6
			// 
			this.label6.Location = new System.Drawing.Point(184, 64);
			this.label6.Name = "label6";
			this.label6.Size = new System.Drawing.Size(48, 21);
			this.label6.TabIndex = 6;
			this.label6.Text = "nFromY";
			// 
			// m_txtFromX
			// 
			this.m_txtFromX.Location = new System.Drawing.Point(96, 64);
			this.m_txtFromX.Name = "m_txtFromX";
			this.m_txtFromX.Size = new System.Drawing.Size(40, 21);
			this.m_txtFromX.TabIndex = 5;
			this.m_txtFromX.Text = "";
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(32, 64);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(48, 21);
			this.label5.TabIndex = 4;
			this.label5.Text = "nFromX";
			// 
			// m_txtFrom
			// 
			this.m_txtFrom.Location = new System.Drawing.Point(248, 32);
			this.m_txtFrom.Name = "m_txtFrom";
			this.m_txtFrom.Size = new System.Drawing.Size(40, 21);
			this.m_txtFrom.TabIndex = 3;
			this.m_txtFrom.Text = "";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(184, 32);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(48, 21);
			this.label4.TabIndex = 2;
			this.label4.Text = "szFrom";
			// 
			// m_txtRow
			// 
			this.m_txtRow.Location = new System.Drawing.Point(96, 32);
			this.m_txtRow.Name = "m_txtRow";
			this.m_txtRow.Size = new System.Drawing.Size(40, 21);
			this.m_txtRow.TabIndex = 1;
			this.m_txtRow.Text = "";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(32, 32);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(48, 21);
			this.label3.TabIndex = 0;
			this.label3.Text = "nRow";
			// 
			// ToolWnd
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(400, 428);
			this.Controls.Add(this.groupBox2);
			this.Controls.Add(this.groupBox1);
			this.Name = "ToolWnd";
			this.Text = "ToolWnd";
			this.groupBox1.ResumeLayout(false);
			this.groupBox2.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		private void button1_Click(object sender, System.EventArgs e)
		{
			string strPath;
			strPath=Directory.GetCurrentDirectory();
			OpenFileDialog FileDialog = new OpenFileDialog();
			FileDialog.InitialDirectory = strPath;
			FileDialog.Filter = "Fax File(*.tif)|*.tif|Tif File(*.fax)|*.fax|Tiff File(*.tiff)|*.tiff|All File(*.*)|*.*" ;
			FileDialog.FilterIndex = 1 ;
			FileDialog.RestoreDirectory = true ;

			if(FileDialog.ShowDialog() == DialogResult.OK)
			{
				m_txtPathFile.Text=FileDialog.FileName;

			}	
		}

		private void button2_Click(object sender, System.EventArgs e)
		{
			int n=fBmp_GetFileAllPage(m_txtPathFile.Text);
			m_txtNumPage.Text=n.ToString();
		}

		private void button3_Click(object sender, System.EventArgs e)
		{
			int nRow=int.Parse(m_txtRow.Text);
			int nFromX=int.Parse(m_txtFromX.Text);
			int nFromY=int.Parse(m_txtFromY.Text);
			string strFrom=m_txtFrom.Text;
			int nSubX=int.Parse(m_txtSubX.Text);
			int nSubY=int.Parse(m_txtSubY.Text);
			string strSub=m_txtSub.Text;
			int nToX=int.Parse(m_txtToX.Text);
			int nToY=int.Parse(m_txtToY.Text);
			string strTo=m_txtTo.Text;
			int nTimeX=int.Parse(m_txtTimeX.Text);
			int nTimeY=int.Parse(m_txtTimeY.Text);
			string strTime=m_txtTime.Text;

			int n = fBmp_SetHeaderFormat(nRow, nFromX, nFromY,strFrom,nSubX, nSubY, strSub,nToX, nToY, strTo,
				nTimeX, nTimeY, strTime);
			MessageBox.Show(n.ToString());
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -