Example #1
0
		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);
				}
			}
		}
Example #2
0
		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);
		}
Example #3
0
		private void CloseSearchForm() {
			s = null;
		}