private void btnUnselectAll_Click(object sender, EventArgs e) { if (ListActive == 1) { List1.UnselectAllItems(); } else { List2.UnselectAllItems(); } }