Example #1
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            InputSearch inpSearch = new InputSearch();
            FormBlur    formBlur  = new FormBlur(this);

            if (inpSearch.ShowDialog(this) == DialogResult.OK)
            {
                string       text   = inpSearch.getInputSearch();
                ResultSearch result = new ResultSearch(this, this, text, story);
            }
            formBlur.Dispose();
            inpSearch.Dispose();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            InputSearch testDialog = new InputSearch();

            if (testDialog.ShowDialog(this) == DialogResult.OK)
            {
                ResultSearch result = new ResultSearch(this, testDialog.getInputSearch());
            }
            else
            {
                // MessageBox.Show("Huy", "Huy");
            }
            testDialog.Dispose();
        }
Example #3
0
        private void picSearch_Click(object sender, EventArgs e)
        {
            if (Model.MyDatabase.getDone)
            {
                InputSearch inpSearch = new InputSearch();
                FormBlur    formBlur  = new FormBlur(this);

                if (inpSearch.ShowDialog(this) == DialogResult.OK)
                {
                    string       text   = inpSearch.getInputSearch();
                    ResultSearch result = new ResultSearch(this, null, text, null);
                }
                formBlur.Dispose();
                inpSearch.Dispose();
            }
        }