예제 #1
0
        private void btn_user_delete_Click(object sender, EventArgs e)
        {
            DialogResult dialog = MessageBox.Show("Are you sure to delete this account.", "Okey", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dialog == DialogResult.Yes)
            {
                DbCustomer.DeleteProfile();
                Customer.activeCustomer = 0;
                Application.Restart(); //Hesap silindi giriş sayfasına dön
            }
        }