Beispiel #1
0
        private void btn_validate_Click(object sender, EventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Tem a certeza que pretende validar?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dialog == DialogResult.Yes)
            {
                _serv.UpdateValidStatus(_id, !_isValid);
                MessageBox.Show("Validado com sucesso.", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }

            Close();
        }