private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (checkBox1.Checked) { group.GroupByNameAndSirname(listBox1); } else { operations.FillMyListBox(listBox1); } }