Exemplo n.º 1
0
        private void btnClearEvent_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Sure?", "Clear table", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                var repo = new EventRepository(this.txtConnectionString.Text);
                repo.ClearTable();
                //MessageBox.Show("Finish !.")
                btnSearchEvent.PerformClick();
            }
        }