Example #1
0
        private void initializeBookListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var result = MessageBox.Show("Are you sure you want to Re-Initialize your Book List and Users? This will clear all user-modified data such as borrowed books and newly created users. Please proceed with caution.", "Simplified Library System", MessageBoxButtons.YesNo);

            if (result == DialogResult.Yes)
            {
                _book.InitializeBookList();
                _borrower.InitializeBorrower();
            }
        }