/// <summary> /// Occurs when the Initialize Database MenuItem is clicked. /// </summary> /// <param name="sender">Control that initiated the event.</param> /// <param name="e">Event arguments.</param> private void InitializeBDToolStripMenuItem_Click(object sender, EventArgs e) { try { if (DialogResult.Yes == MessageBox.Show("This is a diagnostic procedure that will wipe everything on your database including preferences and stored documents. Only use it if you suspect that your database has been corrupted. Proceed with caution.\n[NB: This action is not be undone.]", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning)) { if (DialogResult.Yes == MessageBox.Show("Are you sure?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning)) { if (MainThread.ConfirmDBIntegrity()) { MessageBox.Show("Done"); } } } } catch { } }