How can i rewrite this code using switch statements for message box to make code smaller and faster?
     //  panel1.Visible = checkBoxCCF.Checked;
        panel2.Visible = checkBoxReliabilty.Checked;
        panel3.Visible = checkBoxRisk.Checked;
        panel4.Visible = checkBoxSaftey.Checked;
        panel5.Visible = checkBoxSensitivity.Checked;
        panel6.Visible = checkBoxThroughput.Checked;
        panel7.Visible = checkBoxUncertainity.Checked;
        if (checkBoxCCF.Checked)
        {
            DialogResult result = MessageBox.Show("Do you  do want to know           more about " + checkBoxCCF.Text, "Warning",
            MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
            if (result == DialogResult.Yes)
            {
                //code for yes
            }
            else if (result == DialogResult.No)
            {
                panel1.Visible = checkBoxCCF.Checked;
            }
            else if (result == DialogResult.Cancel)
            {
                //code for Cancel
            }
 
    