void CheckedChange(string path, bool isChecked) { if (IsSelectMany == false) { Selects.Clear(); if (isChecked) { Selects.Add(path); } return; } if (isChecked) { if (Selects.Contains(path)) { return; } Selects.Add(path); } else { if (Selects.Contains(path) == false) { return; } Selects.Remove(path); } }