public void ResetForm() { SetControlEnable(true); TimBinding.Clear(); txtNazivTima.Clear(); UncheckAll(checkListHirurzi); UncheckAll(checkListStazisti); UncheckAll(checkListSestre); UncheckAll(checkListAnesteziolozi); }
private void checkListBox_ItemCheck(object sender, ItemCheckEventArgs e) { if (e.NewValue == CheckState.Checked) { TimBinding.Add(((CheckedListBox)sender).Items[e.Index]); } else if (e.NewValue == CheckState.Unchecked) { TimBinding.Remove(((CheckedListBox)sender).Items[e.Index]); } }