Exemplo n.º 1
0
        private void deleteRecordToolStripMenuItem_Click(object sender, EventArgs e)
        {
            access_data d = new access_data();

            if (d.DeleteTo(e_to) == true)
            {
                MetroMessageBox.Show(this, "Information successfully deleted", "WSH notify", MessageBoxButtons.OK, MessageBoxIcon.Information);
                metroGrid1.DataSource = null;
            }

            metroGrid1.DataSource = d.ReturnEmailToCc();
        }