亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? form1.cs

?? 經典著作。關于設計模式。全名Introduction to Design Patterns in C# Code.zip。探討C#中的模式問題。
?? CS
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WinControls
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.TextBox txBox;
		private System.Windows.Forms.Button btPush;
		private System.Windows.Forms.MainMenu mainMenu1;
		private System.Windows.Forms.CheckBox ckBold;
		private System.Windows.Forms.ListBox lsCommands;
		private System.Windows.Forms.ComboBox cbFont;
		private System.Windows.Forms.GroupBox groupBox1;
		private System.Windows.Forms.RadioButton opGreen;
		private System.Windows.Forms.RadioButton opRed;
		private System.Windows.Forms.Label lbText;
		private System.Windows.Forms.MenuItem mnuExit;
		private System.Windows.Forms.RadioButton opBlack;
		private System.ComponentModel.IContainer components;
		private System.Windows.Forms.MenuItem mnuFile;
		private System.Windows.Forms.ToolTip tips;
		private int fontSize;
		public Form1() 		{
			InitializeComponent();
			init();
		}
		private void init() {
			fontSize = 12;
			cbFont.Items.Add ("8");
			cbFont.Items.Add ("10");
			cbFont.Items.Add ("12");
			cbFont.Items.Add ("14");
			cbFont.Items.Add ("18");
			lbText.Text ="Greetings";
			tips.SetToolTip (btPush, "Press to add text to list box");
			tips.SetToolTip (lsCommands, "Click to copy to text box");
		}
		/// <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.components = new System.ComponentModel.Container();
			this.opGreen = new System.Windows.Forms.RadioButton();
			this.groupBox1 = new System.Windows.Forms.GroupBox();
			this.opBlack = new System.Windows.Forms.RadioButton();
			this.opRed = new System.Windows.Forms.RadioButton();
			this.lsCommands = new System.Windows.Forms.ListBox();
			this.cbFont = new System.Windows.Forms.ComboBox();
			this.mainMenu1 = new System.Windows.Forms.MainMenu();
			this.mnuFile = new System.Windows.Forms.MenuItem();
			this.mnuExit = new System.Windows.Forms.MenuItem();
			this.ckBold = new System.Windows.Forms.CheckBox();
			this.txBox = new System.Windows.Forms.TextBox();
			this.btPush = new System.Windows.Forms.Button();
			this.lbText = new System.Windows.Forms.Label();
			this.tips = new System.Windows.Forms.ToolTip(this.components);
			this.groupBox1.SuspendLayout();
			this.SuspendLayout();
			// 
			// opGreen
			// 
			this.opGreen.Location = new System.Drawing.Point(16, 40);
			this.opGreen.Name = "opGreen";
			this.opGreen.Size = new System.Drawing.Size(72, 24);
			this.opGreen.TabIndex = 0;
			this.opGreen.Text = "Green";
			this.opGreen.CheckedChanged += new System.EventHandler(this.opGreen_CheckedChanged);
			// 
			// groupBox1
			// 
			this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
																					this.opBlack,
																					this.opRed,
																					this.opGreen});
			this.groupBox1.Location = new System.Drawing.Point(160, 120);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new System.Drawing.Size(104, 88);
			this.groupBox1.TabIndex = 5;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Grouping";
			// 
			// opBlack
			// 
			this.opBlack.Checked = true;
			this.opBlack.Location = new System.Drawing.Point(16, 24);
			this.opBlack.Name = "opBlack";
			this.opBlack.Size = new System.Drawing.Size(64, 16);
			this.opBlack.TabIndex = 2;
			this.opBlack.TabStop = true;
			this.opBlack.Text = "Black";
			this.opBlack.CheckedChanged += new System.EventHandler(this.opBlack_CheckedChanged);
			// 
			// opRed
			// 
			this.opRed.Location = new System.Drawing.Point(16, 64);
			this.opRed.Name = "opRed";
			this.opRed.Size = new System.Drawing.Size(64, 16);
			this.opRed.TabIndex = 1;
			this.opRed.Text = "Red";
			this.opRed.CheckedChanged += new System.EventHandler(this.opRed_CheckedChanged);
			// 
			// lsCommands
			// 
			this.lsCommands.Location = new System.Drawing.Point(16, 120);
			this.lsCommands.Name = "lsCommands";
			this.lsCommands.Size = new System.Drawing.Size(112, 121);
			this.lsCommands.TabIndex = 3;
			this.lsCommands.SelectedIndexChanged += new System.EventHandler(this.lsCommands_SelectedIndexChanged);
			// 
			// cbFont
			// 
			this.cbFont.DropDownWidth = 112;
			this.cbFont.Location = new System.Drawing.Point(16, 88);
			this.cbFont.Name = "cbFont";
			this.cbFont.Size = new System.Drawing.Size(112, 21);
			this.cbFont.TabIndex = 4;
			this.cbFont.SelectedIndexChanged += new System.EventHandler(this.cbFont_SelectedIndexChanged);
			// 
			// mainMenu1
			// 
			this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.mnuFile});
			// 
			// mnuFile
			// 
			this.mnuFile.Index = 0;
			this.mnuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					this.mnuExit});
			this.mnuFile.Text = "File";
			// 
			// mnuExit
			// 
			this.mnuExit.Index = 0;
			this.mnuExit.Text = "Exit";
			this.mnuExit.Click += new System.EventHandler(this.menuItem2_Click);
			// 
			// ckBold
			// 
			this.ckBold.Location = new System.Drawing.Point(176, 72);
			this.ckBold.Name = "ckBold";
			this.ckBold.Size = new System.Drawing.Size(88, 16);
			this.ckBold.TabIndex = 2;
			this.ckBold.Text = "Bold";
			this.ckBold.CheckedChanged += new System.EventHandler(this.ckBold_CheckedChanged);
			// 
			// txBox
			// 
			this.txBox.Location = new System.Drawing.Point(8, 16);
			this.txBox.Name = "txBox";
			this.txBox.Size = new System.Drawing.Size(128, 20);
			this.txBox.TabIndex = 0;
			this.txBox.Text = "Greetings";
			// 
			// btPush
			// 
			this.btPush.Location = new System.Drawing.Point(160, 16);
			this.btPush.Name = "btPush";
			this.btPush.Size = new System.Drawing.Size(88, 24);
			this.btPush.TabIndex = 1;
			this.btPush.Text = "Push here";
			this.btPush.Click += new System.EventHandler(this.btPush_Click);
			// 
			// lbText
			// 
			this.lbText.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.lbText.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.lbText.Location = new System.Drawing.Point(16, 48);
			this.lbText.Name = "lbText";
			this.lbText.Size = new System.Drawing.Size(120, 32);
			this.lbText.TabIndex = 6;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(292, 273);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.lbText,
																		  this.groupBox1,
																		  this.cbFont,
																		  this.lsCommands,
																		  this.ckBold,
																		  this.btPush,
																		  this.txBox});
			this.Menu = this.mainMenu1;
			this.Name = "Form1";
			this.Text = "Windows controls";
			this.groupBox1.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void btPush_Click(object sender, System.EventArgs e) {
			lsCommands.Items .Add  (txBox.Text +" "+cbFont.SelectedItem );
		}

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

		private void opGreen_CheckedChanged(object sender, System.EventArgs e) {
			lbText.ForeColor =Color.Green; 
		}

		private void opRed_CheckedChanged(object sender, System.EventArgs e) {
			lbText.ForeColor =Color.Red ;
		}

		private void opBlack_CheckedChanged(object sender, System.EventArgs e) {
			lbText.ForeColor =Color.Black ;
		}

		private void ckBold_CheckedChanged(object sender, System.EventArgs e) {
			if (ckBold.Checked ) {
				lbText.Font  =new Font ("Arial", fontSize,FontStyle.Bold );
			}
			else {
				lbText.Font = new Font ("Arial", fontSize);
			}
		}

		private void cbFont_SelectedIndexChanged(object sender, System.EventArgs e) {
			fontSize= Convert.ToInt16 (cbFont.SelectedItem );
			ckBold_CheckedChanged(null, null);
		}

		private void lsCommands_SelectedIndexChanged(object sender, System.EventArgs e) {
			ListBox.SelectedIndexCollection it = new ListBox.SelectedIndexCollection (lsCommands);
			ListBox.SelectedObjectCollection so = new ListBox.SelectedObjectCollection (lsCommands);
			txBox.Text = lsCommands.SelectedItem.ToString () ;
		}
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕欧美日韩一区| 欧美一级片在线看| 一本色道久久综合精品竹菊| 99re热这里只有精品免费视频| 国产乱码精品一区二区三区av| 激情伊人五月天久久综合| 日本一区中文字幕| 奇米精品一区二区三区四区 | 亚洲欧美另类久久久精品2019| 久久久国产一区二区三区四区小说| 日韩欧美精品在线视频| 欧美浪妇xxxx高跟鞋交| 日本精品一级二级| 欧美电影免费观看高清完整版| 日韩一区二区免费视频| 中文在线免费一区三区高中清不卡| 成人免费视频网站在线观看| 成人开心网精品视频| 欧美性高清videossexo| 国产亚洲美州欧州综合国| 亚洲人成精品久久久久| 激情文学综合插| 7777女厕盗摄久久久| 亚洲欧美视频一区| 国产精品亚洲一区二区三区妖精 | 欧美一区二区在线视频| 最新热久久免费视频| 九九热在线视频观看这里只有精品| 欧美日韩一区二区三区高清| 国产精品免费av| 久久久久久电影| 中文字幕一区二区5566日韩| 自拍偷拍亚洲激情| 成人中文字幕合集| 精品国一区二区三区| 亚洲一区在线电影| 欧洲激情一区二区| 亚洲人成网站色在线观看 | 欧美电影免费提供在线观看| 视频一区免费在线观看| 在线精品视频一区二区| 亚洲天堂精品视频| 成人高清伦理免费影院在线观看| 久久亚洲精品小早川怜子| 黄网站免费久久| 久久亚洲精品小早川怜子| 国产麻豆精品在线| 久久亚洲一区二区三区明星换脸| 麻豆视频一区二区| 国产欧美精品一区aⅴ影院| 成人av动漫网站| 亚洲精品美国一| 日韩欧美国产成人一区二区| 国内精品不卡在线| 成人免费视频在线观看| 欧美三级电影在线看| 石原莉奈一区二区三区在线观看| 欧美性猛片xxxx免费看久爱| 国产精品午夜春色av| 欧美私模裸体表演在线观看| 日产欧产美韩系列久久99| 久久久久久久网| eeuss鲁片一区二区三区 | 成人理论电影网| 精品在线你懂的| 五月天丁香久久| 亚洲国产日韩a在线播放性色| 久久婷婷久久一区二区三区| 成人h动漫精品| 在线日韩一区二区| 久久福利视频一区二区| 亚洲激情校园春色| 国产亚洲精品超碰| 欧美日韩美少妇| 懂色av一区二区夜夜嗨| 日韩高清不卡在线| 亚洲欧洲色图综合| 在线成人免费视频| 色诱视频网站一区| 成人成人成人在线视频| 国产中文字幕一区| 亚洲午夜久久久| 亚洲日本电影在线| 国产精品国产自产拍高清av| 日韩精品中午字幕| 日韩欧美国产成人一区二区| 欧美丰满美乳xxx高潮www| 欧美酷刑日本凌虐凌虐| 欧美精品在线一区二区| 欧美日韩精品一区二区三区蜜桃| 一本一本久久a久久精品综合麻豆| 蜜臀久久久99精品久久久久久| 亚洲精品网站在线观看| 亚洲电影视频在线| 青青草精品视频| 热久久国产精品| 国产福利一区二区| 国产成人亚洲综合a∨婷婷| 国产成a人亚洲精品| 国产成人日日夜夜| 97aⅴ精品视频一二三区| 欧美午夜精品一区二区三区| 日韩一区二区在线观看视频播放| 久久久国产一区二区三区四区小说 | 亚洲综合成人在线| 青青国产91久久久久久| 国产成人aaa| 欧美人牲a欧美精品| 欧美一区二区三区免费观看视频| 3atv在线一区二区三区| 国产欧美日韩不卡| 亚洲欧洲另类国产综合| 日本不卡一区二区三区高清视频| 国产成人免费视| 在线国产电影不卡| 五月激情综合色| 国产二区国产一区在线观看| 日韩欧美专区在线| 亚洲v日本v欧美v久久精品| 国产成人超碰人人澡人人澡| 3d成人h动漫网站入口| 国产蜜臀av在线一区二区三区 | 日本免费新一区视频| 99这里只有精品| 精品久久国产老人久久综合| 亚洲成人免费影院| 欧美军同video69gay| 亚洲国产精品麻豆| 日本道精品一区二区三区| 精品免费国产一区二区三区四区| 尤物av一区二区| 不卡av免费在线观看| 丝袜亚洲另类欧美综合| 欧美优质美女网站| 亚洲综合图片区| 91在线你懂得| 一区2区3区在线看| 欧美影视一区在线| 日韩黄色片在线观看| 精品国产一区二区三区四区四| 极品少妇xxxx偷拍精品少妇| 久久美女艺术照精彩视频福利播放| 三级久久三级久久久| 欧美视频完全免费看| 一级精品视频在线观看宜春院| 日本乱人伦一区| 亚洲高清免费视频| 欧美久久久一区| 国产不卡在线播放| 视频一区二区三区在线| 久久久99免费| 欧美日韩视频在线第一区| 日本免费新一区视频| 亚洲精品一区二区三区精华液| 日本视频一区二区三区| 久久久五月婷婷| 欧美最新大片在线看 | 国产精品毛片久久久久久| 在线视频你懂得一区| 国产综合久久久久久久久久久久 | 毛片一区二区三区| 中文字幕五月欧美| 久久一区二区三区国产精品| 在线不卡a资源高清| 成人动漫在线一区| aaa欧美大片| 福利一区二区在线| 日韩和欧美一区二区三区| 亚洲一区二区三区激情| 1区2区3区国产精品| 国产欧美日本一区二区三区| 欧美日韩国产另类一区| 色哟哟一区二区在线观看 | 色综合天天性综合| 91啪亚洲精品| 91精品国产综合久久久久久久| 91在线观看下载| 成年人网站91| 91免费国产在线观看| 91福利在线播放| 欧美丰满高潮xxxx喷水动漫| 91精品国产一区二区人妖| 日韩精品一区二区三区在线| 欧美一区二区三区视频| 色婷婷一区二区| 欧美精品v日韩精品v韩国精品v| 欧美在线视频你懂得| 91麻豆精品国产自产在线观看一区| 欧美亚洲高清一区二区三区不卡| 日本乱人伦一区| 精品国产电影一区二区| 国产精品美女久久久久久久| 亚洲不卡av一区二区三区| 久久国产欧美日韩精品| 丁香桃色午夜亚洲一区二区三区| av亚洲精华国产精华精| 欧美视频中文字幕| 久久久精品中文字幕麻豆发布| 最新热久久免费视频| 五月婷婷综合激情|