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)
{
//検索処理を行う
findWordList.RemoveAt(0);
Form1 form = new Form1();
form.findWordList = findWordList;
form.Show();
}
}
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYzsKdXNpbmcgU3lzdGVtLkNvbXBvbmVudE1vZGVsOwp1c2luZyBTeXN0ZW0uRGF0YTsKdXNpbmcgU3lzdGVtLkRyYXdpbmc7CnVzaW5nIFN5c3RlbS5MaW5xOwp1c2luZyBTeXN0ZW0uVGV4dDsKdXNpbmcgU3lzdGVtLldpbmRvd3MuRm9ybXM7CgpuYW1lc3BhY2UgV2luZG93c0Zvcm1zQXBwbGljYXRpb24xCnsKICAgIHB1YmxpYyBwYXJ0aWFsIGNsYXNzIEZvcm0xIDogRm9ybQogICAgewogICAgICAgIHB1YmxpYyBGb3JtMSgpCiAgICAgICAgewogICAgICAgICAgICBJbml0aWFsaXplQ29tcG9uZW50KCk7CiAgICAgICAgfQogICAgICAgIHB1YmxpYyBMaXN0PHN0cmluZz4gZmluZFdvcmRMaXN0OwogICAgICAgIHByaXZhdGUgdm9pZCBGb3JtMV9Mb2FkKG9iamVjdCBzZW5kZXIsIEV2ZW50QXJncyBlKQogICAgICAgIHsKICAgICAgICAgICAgaWYgKGZpbmRXb3JkTGlzdCA9PSBudWxsKQogICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAvL+ODhuOCreOCueODiOODleOCoeOCpOODq+iqreOBv+i+vOOBv+WHpueQhgogICAgICAgICAgICAgICAgLy9maW5kV29yZExpc3Tjgbjjg6rjgrnjg4jjgajjgZfjgabov73liqAKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoZmluZFdvcmRMaXN0LkNvdW50ID4gMCkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgLy/mpJzntKLlh6bnkIbjgpLooYzjgYYKICAgICAgICAgICAgICAgIGZpbmRXb3JkTGlzdC5SZW1vdmVBdCgwKTsKICAgICAgICAgICAgICAgIEZvcm0xIGZvcm0gPSBuZXcgRm9ybTEoKTsKICAgICAgICAgICAgICAgIGZvcm0uZmluZFdvcmRMaXN0ID0gZmluZFdvcmRMaXN0OwogICAgICAgICAgICAgICAgZm9ybS5TaG93KCk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9Cn0K