private void button2_Click(object sender, EventArgs e)
        {
            QueryAON qr = new QueryAON(txtSearch.Text, Stopword);

            bbl.CreateBoardBoolean();
            SearchAON sr  = new SearchAON(qr, bbl.GetBoard());
            var       dt  = new DataTable();
            var       lst = sr.resultFile();

            dt.Columns.Add("Query ID");
            dt.Columns.Add("File Result");
            foreach (string t in lst)
            {
                dt.Rows.Add(txtSearch.Text, t);
            }
            dataGridView2.DataSource = dt;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            var dt = new DataTable();

            dt.Columns.Add("Title");
            dt.Columns.Add("Content");
            var dr = openFileDialog1.ShowDialog();

            if (dr == DialogResult.OK)
            {
                foreach (var file in openFileDialog1.FileNames)
                {
                    string content;
                    using (var reader = new StreamReader(file, Encoding.UTF8))
                    {
                        content = reader.ReadToEnd();
                    }
                    switch (_sword)
                    {
                    case false:
                    {
                        var document = new document(file, content, Regex, 1);
                        ListDocuments.Add(document);
                        dt.Rows.Add(document.Title, document.Content);
                    }
                    break;

                    case true:
                    {
                        var document = new document(file, content, Stopword, Regex);
                        ListDocuments.Add(document);
                        dt.Rows.Add(document.Title, document.Content);
                    }
                    break;
                    }
                }
            }
            dt.AcceptChanges();
            dataGridView1.DataSource = dt;
            DTable = dt;
            bbl    = new BoardBoolean(ListDocuments);
            bbl.CreateBoardBoolean();
            bbl.CreateBoardVobu();
            bbl.CreateBoardDictionary();
        }