private void SelectAll_Click(object sender, EventArgs e) { for (int index = 0; index < CheckCameraList.Items.Count; index++) { CheckCameraList.SetItemCheckState(index, CheckState.Checked); } }
public void SaveConfig_Click(object sender, EventArgs e) { // Get Device Selected in CheckBoxList Global.SelectedDeviceList.Clear(); for (int index = 0; index < CheckCameraList.Items.Count; index++) { if (CheckCameraList.GetItemChecked(index)) { Global.SelectedDeviceList.Add(index); Global.setResolution_List.Add(index, 0); Console.WriteLine(index.ToString()); } } this.Close(); }