Example #1
0
        //click event to delete an existing department
        private void deleteDeptButton_Click(object sender, System.EventArgs e)
        {
            string departmentName = departmentTextBox.Text;
            bool   response       = Operations.DeleteDepartment(departmentName);

            if (response == true)
            {
                MessageBox.Show($"{departmentName} department deleted!");
                departmentTextBox.Text = "";
            }
            else
            {
                MessageBox.Show("Operation Failed!");
            }
        }