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

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

?? mainform.cs

?? 一個簡單的文本編輯器程序,功能和windows記事本類似
?? CS
?? 第 1 頁 / 共 2 頁
字號:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.IO;
using System.Text;

namespace Editor
{
	/// <summary>
	/// Form1 的摘要說明。
	/// </summary>
	public class MainForm : System.Windows.Forms.Form
	{
		#region windows controls
		private System.Windows.Forms.MainMenu mainMenu;
		private System.Windows.Forms.MenuItem menu_File;
		private System.Windows.Forms.MenuItem menu_Edit;
		private System.Windows.Forms.MenuItem menu_Help;
		private System.Windows.Forms.MenuItem menu_FileOpen;
		private System.Windows.Forms.MenuItem menu_FileSave;
		private System.Windows.Forms.MenuItem menu_FileSaveAs;
		private System.Windows.Forms.MenuItem menu_Format;
		private System.Windows.Forms.MenuItem menuItem2;
		private System.Windows.Forms.MenuItem menu_EditCut;
		private System.Windows.Forms.MenuItem menu_EditCopy;
		private System.Windows.Forms.MenuItem menu_EditPaste;
		private System.Windows.Forms.MenuItem menuItem3;
		private System.Windows.Forms.MenuItem menu_EditDel;
		private System.Windows.Forms.MenuItem menu_EditSelAll;
		private System.Windows.Forms.MenuItem menuItem4;
		private System.Windows.Forms.MenuItem menu_EditFind;
		private System.Windows.Forms.MenuItem menu_EditReplace;
		public System.Windows.Forms.RichTextBox txtMain;
		private System.Windows.Forms.MenuItem menuItem5;
		private System.Windows.Forms.MenuItem menu_FileExit;
		private System.Windows.Forms.MenuItem menu_HelpAbout;
		private System.Windows.Forms.MenuItem menu_FileNew;
		private System.Windows.Forms.StatusBar mainStatus;
		private System.Windows.Forms.StatusBarPanel statusBarSaveTime;
		private System.Windows.Forms.OpenFileDialog dlg_openFile;
		private System.Windows.Forms.SaveFileDialog dlg_saveFile;
		private System.Windows.Forms.FontDialog dlg_font;
		private System.Windows.Forms.MenuItem menu_EditUndo;
		private System.Windows.Forms.MenuItem menu_EditRedo;
		private System.Windows.Forms.MenuItem menu_FormatFont;
		private System.Windows.Forms.MenuItem menuItem7;
		private System.Windows.Forms.MenuItem menu_EncodeGB;
		private System.Windows.Forms.MenuItem menu_EncodeASCII;
		private System.Windows.Forms.MenuItem menu_EncodeUTF7;
		private System.Windows.Forms.MenuItem menu_EncodeUTF8;
		private System.Windows.Forms.MenuItem menu_EncodeUni;
		#endregion

		#region 定義的field和attribute
		private bool IsChanged; // 文檔是否被修改
		private bool IsSaved;	// 文檔是否被保存過
		private Encoding TextEncoding = Encoding.GetEncoding("GB2312");
		private SearchAndReplace searchForm;
		private string fileName;// 文檔的文件名
		public string FileName
		{
			get
			{
				if(this.fileName == null)
				{
					return "無標題";
				}
				return this.fileName;
			}
			set
			{
				this.fileName = value;
			}
		}
		#endregion
		/// <summary>
		/// 必需的設計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		public MainForm()
		{
			//
			// Windows 窗體設計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調用后添加任何構造函數代碼
			//
		}

		/// <summary>
		/// 清理所有正在使用的資源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if(!AlertSaveFile())
			{
				return;
			}
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows 窗體設計器生成的代碼
		/// <summary>
		/// 設計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內容。
		/// </summary>
		private void InitializeComponent()
		{
			this.mainMenu = new System.Windows.Forms.MainMenu();
			this.menu_File = new System.Windows.Forms.MenuItem();
			this.menu_FileNew = new System.Windows.Forms.MenuItem();
			this.menu_FileOpen = new System.Windows.Forms.MenuItem();
			this.menu_FileSave = new System.Windows.Forms.MenuItem();
			this.menu_FileSaveAs = new System.Windows.Forms.MenuItem();
			this.menuItem5 = new System.Windows.Forms.MenuItem();
			this.menu_FileExit = new System.Windows.Forms.MenuItem();
			this.menu_Edit = new System.Windows.Forms.MenuItem();
			this.menu_EditUndo = new System.Windows.Forms.MenuItem();
			this.menu_EditRedo = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.menu_EditCut = new System.Windows.Forms.MenuItem();
			this.menu_EditCopy = new System.Windows.Forms.MenuItem();
			this.menu_EditPaste = new System.Windows.Forms.MenuItem();
			this.menu_EditDel = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.menu_EditFind = new System.Windows.Forms.MenuItem();
			this.menu_EditReplace = new System.Windows.Forms.MenuItem();
			this.menuItem4 = new System.Windows.Forms.MenuItem();
			this.menu_EditSelAll = new System.Windows.Forms.MenuItem();
			this.menu_Format = new System.Windows.Forms.MenuItem();
			this.menu_FormatFont = new System.Windows.Forms.MenuItem();
			this.menuItem7 = new System.Windows.Forms.MenuItem();
			this.menu_EncodeGB = new System.Windows.Forms.MenuItem();
			this.menu_EncodeUni = new System.Windows.Forms.MenuItem();
			this.menu_EncodeUTF7 = new System.Windows.Forms.MenuItem();
			this.menu_EncodeUTF8 = new System.Windows.Forms.MenuItem();
			this.menu_EncodeASCII = new System.Windows.Forms.MenuItem();
			this.menu_Help = new System.Windows.Forms.MenuItem();
			this.menu_HelpAbout = new System.Windows.Forms.MenuItem();
			this.txtMain = new System.Windows.Forms.RichTextBox();
			this.mainStatus = new System.Windows.Forms.StatusBar();
			this.statusBarSaveTime = new System.Windows.Forms.StatusBarPanel();
			this.dlg_openFile = new System.Windows.Forms.OpenFileDialog();
			this.dlg_saveFile = new System.Windows.Forms.SaveFileDialog();
			this.dlg_font = new System.Windows.Forms.FontDialog();
			((System.ComponentModel.ISupportInitialize)(this.statusBarSaveTime)).BeginInit();
			this.SuspendLayout();
			// 
			// mainMenu
			// 
			this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					 this.menu_File,
																					 this.menu_Edit,
																					 this.menu_Format,
																					 this.menu_Help});
			// 
			// menu_File
			// 
			this.menu_File.Index = 0;
			this.menu_File.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menu_FileNew,
																					  this.menu_FileOpen,
																					  this.menu_FileSave,
																					  this.menu_FileSaveAs,
																					  this.menuItem5,
																					  this.menu_FileExit});
			this.menu_File.Text = "文件(&F)";
			// 
			// menu_FileNew
			// 
			this.menu_FileNew.Index = 0;
			this.menu_FileNew.Text = "新建文件";
			this.menu_FileNew.Click += new System.EventHandler(this.menu_FileNew_Click);
			// 
			// menu_FileOpen
			// 
			this.menu_FileOpen.Index = 1;
			this.menu_FileOpen.Text = "打開文件";
			this.menu_FileOpen.Click += new System.EventHandler(this.menu_FileOpen_Click);
			// 
			// menu_FileSave
			// 
			this.menu_FileSave.Index = 2;
			this.menu_FileSave.Text = "保存";
			this.menu_FileSave.Click += new System.EventHandler(this.menu_FileSave_Click);
			// 
			// menu_FileSaveAs
			// 
			this.menu_FileSaveAs.Index = 3;
			this.menu_FileSaveAs.Text = "另存為...";
			this.menu_FileSaveAs.Click += new System.EventHandler(this.menu_FileSaveAs_Click);
			// 
			// menuItem5
			// 
			this.menuItem5.Index = 4;
			this.menuItem5.Text = "-";
			// 
			// menu_FileExit
			// 
			this.menu_FileExit.Index = 5;
			this.menu_FileExit.Text = "退出";
			this.menu_FileExit.Click += new System.EventHandler(this.menu_FileExit_Click);
			// 
			// menu_Edit
			// 
			this.menu_Edit.Index = 1;
			this.menu_Edit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menu_EditUndo,
																					  this.menu_EditRedo,
																					  this.menuItem2,
																					  this.menu_EditCut,
																					  this.menu_EditCopy,
																					  this.menu_EditPaste,
																					  this.menu_EditDel,
																					  this.menuItem3,
																					  this.menu_EditFind,
																					  this.menu_EditReplace,
																					  this.menuItem4,
																					  this.menu_EditSelAll});
			this.menu_Edit.Text = "編輯(&E)";
			// 
			// menu_EditUndo
			// 
			this.menu_EditUndo.Index = 0;
			this.menu_EditUndo.Text = "撤銷";
			this.menu_EditUndo.Click += new System.EventHandler(this.menu_EditUndo_Click);
			// 
			// menu_EditRedo
			// 
			this.menu_EditRedo.Index = 1;
			this.menu_EditRedo.Text = "重復";
			this.menu_EditRedo.Click += new System.EventHandler(this.menu_EditRedo_Click);
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 2;
			this.menuItem2.Text = "-";
			// 
			// menu_EditCut
			// 
			this.menu_EditCut.Index = 3;
			this.menu_EditCut.Text = "剪切";
			this.menu_EditCut.Click += new System.EventHandler(this.menu_EditCut_Click);
			// 
			// menu_EditCopy
			// 
			this.menu_EditCopy.Index = 4;
			this.menu_EditCopy.Text = "復制";
			this.menu_EditCopy.Click += new System.EventHandler(this.menu_EditCopy_Click);
			// 
			// menu_EditPaste
			// 
			this.menu_EditPaste.Index = 5;
			this.menu_EditPaste.Text = "粘貼";
			this.menu_EditPaste.Click += new System.EventHandler(this.menu_EditPaste_Click);
			// 
			// menu_EditDel
			// 
			this.menu_EditDel.Index = 6;
			this.menu_EditDel.Text = "刪除";
			this.menu_EditDel.Click += new System.EventHandler(this.menu_EditDel_Click);
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 7;
			this.menuItem3.Text = "-";
			// 
			// menu_EditFind
			// 
			this.menu_EditFind.Index = 8;
			this.menu_EditFind.Text = "查找";
			this.menu_EditFind.Click += new System.EventHandler(this.menu_EditFind_Click);
			// 
			// menu_EditReplace
			// 
			this.menu_EditReplace.Index = 9;
			this.menu_EditReplace.Text = "替換";
			this.menu_EditReplace.Click += new System.EventHandler(this.menu_EditFind_Click);
			// 
			// menuItem4
			// 
			this.menuItem4.Index = 10;
			this.menuItem4.Text = "-";
			// 
			// menu_EditSelAll
			// 
			this.menu_EditSelAll.Index = 11;
			this.menu_EditSelAll.Text = "全選";
			this.menu_EditSelAll.Click += new System.EventHandler(this.menu_EditSelAll_Click);
			// 
			// menu_Format
			// 
			this.menu_Format.Index = 2;
			this.menu_Format.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						this.menu_FormatFont,
																						this.menuItem7});
			this.menu_Format.Text = "格式(&O)";
			// 
			// menu_FormatFont
			// 
			this.menu_FormatFont.Index = 0;
			this.menu_FormatFont.Text = "字體";
			this.menu_FormatFont.Click += new System.EventHandler(this.menu_FormatFont_Click);
			// 
			// menuItem7
			// 
			this.menuItem7.Index = 1;
			this.menuItem7.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menu_EncodeGB,
																					  this.menu_EncodeUni,
																					  this.menu_EncodeUTF7,
																					  this.menu_EncodeUTF8,
																					  this.menu_EncodeASCII});
			this.menuItem7.Text = "編碼";
			// 
			// menu_EncodeGB
			// 
			this.menu_EncodeGB.Index = 0;
			this.menu_EncodeGB.Text = "GB2312";
			this.menu_EncodeGB.Click += new System.EventHandler(this.menu_EncodeGB_Click);
			// 
			// menu_EncodeUni
			// 
			this.menu_EncodeUni.Index = 1;
			this.menu_EncodeUni.Text = "Unicode";
			this.menu_EncodeUni.Click += new System.EventHandler(this.menu_EncodeUni_Click);
			// 
			// menu_EncodeUTF7
			// 
			this.menu_EncodeUTF7.Index = 2;
			this.menu_EncodeUTF7.Text = "UTF7";
			this.menu_EncodeUTF7.Click += new System.EventHandler(this.menu_EncodeUTF7_Click);
			// 
			// menu_EncodeUTF8
			// 
			this.menu_EncodeUTF8.Index = 3;
			this.menu_EncodeUTF8.Text = "UTF8";
			this.menu_EncodeUTF8.Click += new System.EventHandler(this.menu_EncodeUTF8_Click);
			// 
			// menu_EncodeASCII
			// 
			this.menu_EncodeASCII.Index = 4;
			this.menu_EncodeASCII.Text = "ASCII";
			this.menu_EncodeASCII.Click += new System.EventHandler(this.menu_EncodeASCII_Click);
			// 
			// menu_Help
			// 
			this.menu_Help.Index = 3;
			this.menu_Help.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																					  this.menu_HelpAbout});
			this.menu_Help.Text = "幫助(&H)";
			// 
			// menu_HelpAbout
			// 
			this.menu_HelpAbout.Index = 0;
			this.menu_HelpAbout.Text = "關于";
			this.menu_HelpAbout.Click += new System.EventHandler(this.menu_HelpAbout_Click);
			// 
			// txtMain
			// 
			this.txtMain.AcceptsTab = true;
			this.txtMain.AllowDrop = true;
			this.txtMain.Location = new System.Drawing.Point(0, 0);
			this.txtMain.Name = "txtMain";
			this.txtMain.Size = new System.Drawing.Size(408, 256);
			this.txtMain.TabIndex = 0;
			this.txtMain.Text = "";
			this.txtMain.TextChanged += new System.EventHandler(this.txtMain_TextChanged);
			// 
			// mainStatus
			// 
			this.mainStatus.Location = new System.Drawing.Point(0, 261);
			this.mainStatus.Name = "mainStatus";
			this.mainStatus.Panels.AddRange(new System.Windows.Forms.StatusBarPanel[] {
																						  this.statusBarSaveTime});
			this.mainStatus.ShowPanels = true;
			this.mainStatus.Size = new System.Drawing.Size(408, 20);
			this.mainStatus.TabIndex = 1;
			// 
			// statusBarSaveTime

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产中文| 欧洲亚洲精品在线| 国产精品乱码妇女bbbb| 国产精品自产自拍| 欧美激情一区在线观看| 成人高清在线视频| 亚洲黄色片在线观看| 在线观看国产精品网站| 午夜a成v人精品| 精品美女被调教视频大全网站| 免费观看91视频大全| 日韩美女一区二区三区四区| 国产黄色成人av| 成人欧美一区二区三区黑人麻豆| 91蝌蚪国产九色| 日本午夜精品一区二区三区电影| 久久综合狠狠综合久久激情 | 亚洲一区二区三区中文字幕| 欧美日韩一区二区在线视频| 精品一区二区三区久久久| 国产亚洲欧洲997久久综合| 成人黄色综合网站| 偷拍一区二区三区四区| 精品国产在天天线2019| 91在线视频网址| 美女在线一区二区| 中文字幕视频一区| 欧美一级免费观看| 国产高清在线观看免费不卡| 一区二区日韩av| 欧美精品一区二区三区蜜臀| 色综合视频在线观看| 日本不卡高清视频| 综合久久久久综合| 日韩欧美精品在线| 91蝌蚪国产九色| 韩日av一区二区| 一区二区三区欧美视频| 日韩精品一区二区在线观看| 97久久精品人人澡人人爽| 久久精品国产77777蜜臀| 中文字幕一区二区三中文字幕| 欧美一区二区日韩| 色诱视频网站一区| 国产91精品一区二区| 奇米精品一区二区三区在线观看| 日韩码欧中文字| 亚洲精品一区二区三区香蕉| 欧美日韩三级在线| 色综合久久中文字幕| 国产精品一品二品| 日韩成人一区二区三区在线观看| 18成人在线观看| 国产亚洲制服色| 日韩欧美亚洲国产精品字幕久久久| 91免费看片在线观看| 国产999精品久久久久久绿帽| 青娱乐精品在线视频| 亚洲免费观看高清完整版在线观看熊| 国产婷婷色一区二区三区在线| 日韩一区二区三区在线视频| 丁香啪啪综合成人亚洲小说| 亚洲亚洲人成综合网络| 国产女人水真多18毛片18精品视频| 欧美久久久久久蜜桃| 91精彩视频在线观看| 成人丝袜高跟foot| 粉嫩蜜臀av国产精品网站| 久久精品久久久精品美女| 人禽交欧美网站| 奇米色777欧美一区二区| 亚洲国产日韩一级| 亚洲一区视频在线| 伊人色综合久久天天人手人婷| 一区视频在线播放| 亚洲欧洲精品一区二区三区 | 久久电影网站中文字幕| 日韩国产欧美在线播放| 五月天久久比比资源色| 亚洲国产日产av| 91精品国产黑色紧身裤美女| 久久午夜免费电影| 日韩欧美亚洲国产另类| 日韩精品一区二区在线| 日韩午夜在线观看| 欧美成人三级在线| 26uuu欧美日本| 久久久久久久久久久99999| 精品99999| 国产日韩精品一区二区三区在线| 久久久久久久电影| 国产精品剧情在线亚洲| 亚洲欧洲综合另类| 一区二区三区精品在线| 亚洲va国产天堂va久久en| 日韩综合小视频| 免费成人结看片| 国产精品亚洲成人| av一区二区三区黑人| 在线观看视频一区二区| 91精品欧美福利在线观看| 3atv在线一区二区三区| 欧美成人a∨高清免费观看| 久久精品综合网| 亚洲乱码日产精品bd| 欧美特级限制片免费在线观看| 欧美精品在线一区二区三区| 日韩一区二区视频在线观看| 国产欧美一区二区精品婷婷 | 91精品国产综合久久久蜜臀粉嫩| 日韩欧美国产一区二区三区| 久久久99精品久久| 夜夜精品浪潮av一区二区三区| 午夜不卡在线视频| 国产99久久久国产精品免费看| 91啪九色porn原创视频在线观看| 在线播放中文一区| 国产喷白浆一区二区三区| 亚洲综合激情网| 国产精品一区在线| 91久久精品国产91性色tv| 日韩精品在线网站| 一区二区视频免费在线观看| 久久99精品国产麻豆婷婷| 99久久久国产精品| 精品av综合导航| 亚洲成人黄色影院| 成人手机电影网| 91精品国产高清一区二区三区| 欧美激情一区二区三区全黄 | 欧美电影免费观看高清完整版| 亚洲国产高清不卡| 美国十次综合导航| 91欧美一区二区| 国产三级久久久| 日精品一区二区三区| 色综合久久久网| 久久久久久一级片| 日韩av在线播放中文字幕| 97精品电影院| 国产亚洲精品免费| 久久精品72免费观看| 欧美午夜精品久久久久久超碰| 中文天堂在线一区| 国内精品伊人久久久久av一坑| 欧美日韩一区视频| 亚洲男女毛片无遮挡| 懂色av一区二区夜夜嗨| 精品国产乱码久久久久久闺蜜| 亚洲午夜精品17c| 91小视频在线| 中文字幕av一区 二区| 黄网站免费久久| 精品少妇一区二区三区在线播放 | 亚洲一区二区三区四区不卡| 国产成人h网站| 久久新电视剧免费观看| 污片在线观看一区二区| 91在线国产福利| 国产精品网曝门| 成人影视亚洲图片在线| 欧美激情一区二区三区全黄| 国产精品69久久久久水密桃| 精品区一区二区| 激情另类小说区图片区视频区| 日韩精品一区二区三区在线观看| 水蜜桃久久夜色精品一区的特点| 在线观看国产日韩| 亚洲综合一二三区| 欧美亚男人的天堂| 一区二区免费在线播放| 欧美三区在线观看| 日韩精品视频网站| 日韩欧美亚洲国产另类| 九一九一国产精品| 久久久午夜电影| 国产成人在线影院| 国产精品无人区| 99久精品国产| 亚洲国产另类av| 欧美一区二区三区免费视频| 日本麻豆一区二区三区视频| 日韩午夜中文字幕| 国产精品亚洲综合一区在线观看| 国产欧美一区二区三区在线老狼| 成人在线视频一区| 亚洲色图欧美激情| 欧美美女网站色| 激情欧美一区二区三区在线观看| 国产丝袜在线精品| 色婷婷综合久久久久中文| 婷婷久久综合九色综合伊人色| 91精品国产综合久久久久久漫画| 精品一区二区三区日韩| 中文在线一区二区 | 日欧美一区二区| 26uuu精品一区二区在线观看| 成人一二三区视频| 亚洲成人av在线电影| 精品国产免费久久|