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

📄 frmtransactions.cs

📁 北大青鸟内部资料
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace Example_1
{
	/// <summary>
	/// Summary description for frmTransactions.
	/// </summary>
	public class frmTransactions : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TextBox txtTransactionDetails;
		private System.Windows.Forms.Button btnOK;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public frmTransactions(string transactions)
		{
			//
			// Windows 窗体设计器支持所必需
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后面添加任何构造函数代码
			//
			this.txtTransactionDetails.Text=transactions;
		}


		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.txtTransactionDetails = new System.Windows.Forms.TextBox();
			this.btnOK = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// txtTransactionDetails
			// 
			this.txtTransactionDetails.Enabled = false;
			this.txtTransactionDetails.Location = new System.Drawing.Point(23, 17);
			this.txtTransactionDetails.Multiline = true;
			this.txtTransactionDetails.Name = "txtTransactionDetails";
			this.txtTransactionDetails.Size = new System.Drawing.Size(297, 138);
			this.txtTransactionDetails.TabIndex = 0;
			this.txtTransactionDetails.Text = "";
			// 
			// btnOK
			// 
			this.btnOK.Location = new System.Drawing.Point(230, 164);
			this.btnOK.Name = "btnOK";
			this.btnOK.Size = new System.Drawing.Size(90, 24);
			this.btnOK.TabIndex = 1;
			this.btnOK.Text = "确定(&O)";
			this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
			// 
			// frmTransactions
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(345, 203);
			this.Controls.Add(this.btnOK);
			this.Controls.Add(this.txtTransactionDetails);
			this.Name = "frmTransactions";
			this.Text = " 交易详情";
			this.ResumeLayout(false);

		}
		#endregion

		private void btnOK_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}
	}
}

⌨️ 快捷键说明

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