예제 #1
0
파일: Form1.cs 프로젝트: otty-uta/OchiMemo
		private void MenuItemEditFind_Click(object sender, EventArgs e) {
			for (int i = 0; i < 1000; i++) {
				if (s == null) {
					bool status = true;
					s = new Search();
					s.SearchMethodCall += new Search.Searching(SearchStart);
					s.word = textBoxMain.Text;
					s.Show();
					s.FinishCall += new Search.Finish(CloseSearchForm);
				}
			}
		}
예제 #2
0
파일: Form1.cs 프로젝트: otty-uta/OchiMemo
		private void MenuItemHelpReadMe_Click(object sender, EventArgs e) {
			//TODO:リスト30「42 テキストファイルを表示する」
			string s = System.IO.Path.GetDirectoryName(Application.ExecutablePath);
			s = System.IO.Path.Combine(s, "README.TXT");
			if (System.IO.File.Exists(s))
				System.Diagnostics.Process.Start(s);
			else
				MessageBox.Show(s + "が見付かりません。", ApplicationName);
		}
예제 #3
0
		private void CloseSearchForm() {
			s = null;
		}