Esempio n. 1
0
 private void TglButton_toggledCallback(object sender, RSToggleButtonEventArgs e)
 {
     if (e.IsActive)
     {
         selectedTagList.Add(e.Text);
     }
     else
     {
         selectedTagList.Remove(e.Text);
     }
     selectedTagListChanged?.Invoke(sender, e);
 }
Esempio n. 2
0
 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);
 }