private void TglButton_toggledCallback(object sender, RSToggleButtonEventArgs e) { if (e.IsActive) { selectedTagList.Add(e.Text); } else { selectedTagList.Remove(e.Text); } selectedTagListChanged?.Invoke(sender, e); }
private void TglAllTag_toggledCallback(object sender, RSToggleButtonEventArgs e) { selectedTagList.Clear(); if (e.IsActive) { foreach (var item in list) { item.Value.SetActive(true); selectedTagList.Add(item.Key); } } else { foreach (var item in list) { item.Value.SetActive(false); } } selectedTagListChanged?.Invoke(sender, e); }