if any check box is checked then all check box checked in c# code example
Example 1: if checkbox checked in c#
if(checkbox1.checked ^ checkbox2.checked)
{
//do stuff
}
Example 2: if checkbox checked in c#
if (checkbox1.Checked && !checkbox2.Checked)
{
}
else if (!checkbox1.Checked && checkbox2.Checked)
{
}