private void checkBox2_CheckedChanged(object sender, EventArgs e) { if (checkBox2.Checked) { group.ShowInGroups(listBox1); } else { operations.FillMyListBox(listBox1); } }