Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }