예제 #1
0
        private void btnWipe_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("This action will wipe all the access logs from the device. Do you wish to continue?",
                                                  "Warning",
                                                  MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                Device.ClearData(1, 1);
            }
        }