void editor_ItemCheck(object sender, ItemCheckEventArgs e)
{
CheckedListBox list = (sender as CheckedListBox);
if (list == null) return;
if ((list.Items[e.Index].ToString() == BuildTargetsInfo.DATAFILE_TARGET_NAME) &&
(e.NewValue == CheckState.Unchecked))
{
e.NewValue = CheckState.Checked;
MessageBox.Show("Data file cannot be deselected!", "Invalid selection", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
}