/// <summary> /// Removes a title menu button. /// </summary> /// <param name="key"> /// The key of the button to remove. /// </param> public static void RemoveCustomTileButton(string key) { var removedItems = CustomOptions.Where(n => n.Key == key); foreach (var item in removedItems) { CustomOptions.Remove(item); } }
public override void performButtonAction(string which) { base.performButtonAction(which); var customPressed = CustomOptions.Where(n => n.Key == which); foreach (var customAction in customPressed) { customAction.OnClick?.Invoke(this, which); } }