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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? 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>
		/// 必需的設(shè)計器變量。
		/// </summary>
		private System.ComponentModel.Container components = null;
		public MainForm()
		{
			//
			// Windows 窗體設(shè)計器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 調(diào)用后添加任何構(gòu)造函數(shù)代碼
			//
		}

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

		#region Windows 窗體設(shè)計器生成的代碼
		/// <summary>
		/// 設(shè)計器支持所需的方法 - 不要使用代碼編輯器修改
		/// 此方法的內(nèi)容。
		/// </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 = "重復(fù)";
			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 = "復(fù)制";
			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 = "關(guān)于";
			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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人短视频下载| 韩日欧美一区二区三区| av动漫一区二区| 国产精品你懂的在线| av亚洲精华国产精华精华| 蜜桃传媒麻豆第一区在线观看| 欧美日韩国产色站一区二区三区| 天堂午夜影视日韩欧美一区二区| 91麻豆精品国产91| 国产一区二区成人久久免费影院 | 久久精品国产亚洲高清剧情介绍 | 亚洲色图在线视频| 欧美性猛交一区二区三区精品| 亚洲午夜电影在线观看| 日韩亚洲国产中文字幕欧美| 国产在线精品国自产拍免费| 国产精品久线在线观看| 欧美偷拍一区二区| 麻豆免费精品视频| 亚洲欧洲日韩在线| 91超碰这里只有精品国产| 精品亚洲国内自在自线福利| 中文乱码免费一区二区| 欧美午夜在线观看| 国产一区三区三区| 亚洲一线二线三线视频| 日韩欧美一二三区| 91麻豆精品一区二区三区| 日韩激情一二三区| 国产日韩精品一区二区三区| 欧美伊人久久久久久午夜久久久久| 美国毛片一区二区三区| 中文字幕一区二区三区在线不卡 | 在线观看日韩av先锋影音电影院| 色呦呦日韩精品| 免费欧美日韩国产三级电影| 国产精品成人一区二区三区夜夜夜| 欧美撒尿777hd撒尿| 粉嫩在线一区二区三区视频| 午夜精品久久久久久久久久久| 日本一区二区三区四区| 欧美精品免费视频| 99综合影院在线| 久久99精品国产.久久久久久| 一区二区三区高清不卡| 久久久不卡网国产精品一区| 欧美亚洲日本一区| 91在线一区二区三区| 精品一区二区免费视频| 亚洲一二三四在线观看| 国产精品欧美久久久久无广告| 精品日产卡一卡二卡麻豆| 欧美日韩中文字幕精品| 成人黄色av电影| 国产真实乱子伦精品视频| 日产国产高清一区二区三区 | 日韩精品中文字幕在线不卡尤物| 中文字幕第一区二区| 日韩你懂的在线观看| 欧美伦理影视网| 欧美日韩免费一区二区三区视频| 9久草视频在线视频精品| 国产成人免费9x9x人网站视频| 极品少妇xxxx精品少妇| 日本成人在线网站| 视频在线观看国产精品| 亚洲成av人**亚洲成av**| 樱花草国产18久久久久| 亚洲精品第1页| 亚洲日本韩国一区| 欧美国产精品劲爆| 国产精品女主播av| 国产精品久久久久久妇女6080| 亚洲国产高清aⅴ视频| 国产亚洲精品aa| 中文字幕精品在线不卡| 中文字幕欧美激情| 亚洲视频你懂的| 亚洲另类在线一区| 一区二区三区在线观看网站| 一区二区三区在线观看视频 | 蓝色福利精品导航| 奇米影视一区二区三区| 免费国产亚洲视频| 国内精品免费**视频| 精品一区二区在线免费观看| 久久国产尿小便嘘嘘尿| 国产一区二区精品久久| 成人毛片视频在线观看| 色综合一区二区| 欧美日产国产精品| 日韩一本二本av| 欧美成人性福生活免费看| 337p粉嫩大胆噜噜噜噜噜91av| 国产三级一区二区| 亚洲视频在线一区| 亚洲成人tv网| 国内精品视频一区二区三区八戒| 国产精品中文字幕日韩精品 | 99精品欧美一区二区三区小说| 99在线精品视频| 欧美日韩一区二区三区四区| 日韩一区二区免费视频| 久久精品亚洲一区二区三区浴池| 国产精品白丝在线| 亚洲一区免费观看| 久久成人麻豆午夜电影| 9l国产精品久久久久麻豆| 欧美日韩精品一区二区天天拍小说| 欧美一级日韩免费不卡| 欧美国产激情二区三区| 午夜伦理一区二区| 国产69精品一区二区亚洲孕妇| 在线精品亚洲一区二区不卡| 欧美mv日韩mv国产网站| 中文字幕亚洲在| 强制捆绑调教一区二区| 99久久综合99久久综合网站| 欧美日韩精品一区二区| 国产女同性恋一区二区| 亚洲国产欧美日韩另类综合| 狠狠色综合播放一区二区| 91色视频在线| 久久久美女毛片| 视频一区视频二区中文| 成人av中文字幕| 欧美电影免费观看高清完整版| 亚洲欧美另类小说| 欧美艳星brazzers| 国产精品全国免费观看高清| 秋霞影院一区二区| 色哟哟一区二区| 久久久久国产免费免费| 午夜亚洲国产au精品一区二区| 国产精品自拍一区| 日韩欧美色电影| 亚洲国产一区在线观看| av在线播放成人| 久久先锋资源网| 日韩av中文字幕一区二区三区| 99re这里都是精品| 久久久电影一区二区三区| 蜜臀va亚洲va欧美va天堂| 欧美自拍丝袜亚洲| 亚洲欧美日本韩国| 国产999精品久久久久久绿帽| 日韩欧美的一区二区| 性欧美疯狂xxxxbbbb| 91亚洲国产成人精品一区二区三| 久久久久9999亚洲精品| 狠狠色丁香婷婷综合| 欧美一区二区视频在线观看2022| 亚洲香肠在线观看| 99riav久久精品riav| 国产精品久久久久久久第一福利| 国产精品一区二区在线观看网站| 日韩欧美一区二区视频| 日韩av中文在线观看| 欧美日本一区二区在线观看| 一个色在线综合| 色嗨嗨av一区二区三区| 亚洲视频小说图片| 99re66热这里只有精品3直播 | 麻豆91精品91久久久的内涵| 7777精品久久久大香线蕉| 午夜一区二区三区视频| 在线观看日韩毛片| 亚洲成a人v欧美综合天堂| 欧美日韩黄视频| 日日摸夜夜添夜夜添国产精品| 欧美日韩国产乱码电影| 丝袜亚洲另类欧美综合| 日韩视频中午一区| 经典三级在线一区| 久久久久久一级片| www.av亚洲| 一区二区三区中文字幕在线观看| 欧美在线视频不卡| 婷婷一区二区三区| 亚洲精品一区在线观看| 国产精品18久久久久久久网站| 亚洲国产精品成人综合色在线婷婷| 成人av网在线| 亚洲一级二级三级| 日韩美女主播在线视频一区二区三区 | 欧美精品在线一区二区| 美日韩一区二区| 国产欧美一区二区在线| 91网站在线播放| 日韩精品一卡二卡三卡四卡无卡| 日韩欧美卡一卡二| 成人自拍视频在线| 亚洲综合丁香婷婷六月香| 91麻豆精品国产91久久久久久久久| 久久av中文字幕片| 椎名由奈av一区二区三区| 欧美欧美欧美欧美首页| 国产高清不卡一区| 亚洲一区二区三区视频在线| 精品国产精品网麻豆系列|