using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
public List<string> findWordList;
private void Form1_Load(object sender, EventArgs e)
{
if (findWordList == null)
{
//テキストファイル読み込み処理
//findWordListへリストとして追加
}
if (findWordList.Count > 0)
{
this.Text = findWordList[0]; //テスト用
//この辺で検索処理を行う
findWordList.RemoveAt(0);
if (findWordList.Count > 0)
{
Form1 form = new Form1();
form.findWordList = findWordList;
form.Show();
}
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkNvbXBvbmVudE1vZGVsOwp1c2luZyBTeXN0ZW0uRGF0YTsKdXNpbmcgU3lzdGVtLkRyYXdpbmc7CnVzaW5nIFN5c3RlbS5MaW5xOwp1c2luZyBTeXN0ZW0uVGV4dDsKdXNpbmcgU3lzdGVtLldpbmRvd3MuRm9ybXM7CgpuYW1lc3BhY2UgV2luZG93c0Zvcm1zQXBwbGljYXRpb24xCnsKICAgIHB1YmxpYyBwYXJ0aWFsIGNsYXNzIEZvcm0xIDogRm9ybQogICAgewogICAgICAgIHB1YmxpYyBGb3JtMSgpCiAgICAgICAgewogICAgICAgICAgICBJbml0aWFsaXplQ29tcG9uZW50KCk7CiAgICAgICAgfQogICAgICAgIHB1YmxpYyBMaXN0PHN0cmluZz4gZmluZFdvcmRMaXN0OwogICAgICAgIHByaXZhdGUgdm9pZCBGb3JtMV9Mb2FkKG9iamVjdCBzZW5kZXIsIEV2ZW50QXJncyBlKQogICAgICAgIHsKICAgICAgICAgICAgaWYgKGZpbmRXb3JkTGlzdCA9PSBudWxsKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAvL+ODhuOCreOCueODiOODleOCoeOCpOODq+iqreOBv+i+vOOBv+WHpueQhgogICAgICAgICAgICAgICAgLy9maW5kV29yZExpc3Tjgbjjg6rjgrnjg4jjgajjgZfjgabov73liqAKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoZmluZFdvcmRMaXN0LkNvdW50ID4gMCkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgdGhpcy5UZXh0ID0gZmluZFdvcmRMaXN0WzBdOyAgICAgICAgICAgICAgICAgLy/jg4bjgrnjg4jnlKgKICAgICAgICAgICAgICAgIC8v44GT44Gu6L6644Gn5qSc57Si5Yem55CG44KS6KGM44GGCiAgICAgICAgICAgICAgICBmaW5kV29yZExpc3QuUmVtb3ZlQXQoMCk7CiAgICAgICAgICAgICAgICBpZiAoZmluZFdvcmRMaXN0LkNvdW50ID4gMCkKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBGb3JtMSBmb3JtID0gbmV3IEZvcm0xKCk7CiAgICAgICAgICAgICAgICAgICAgZm9ybS5maW5kV29yZExpc3QgPSBmaW5kV29yZExpc3Q7CiAgICAgICAgICAgICAgICAgICAgZm9ybS5TaG93KCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9Cn0K