Action for a button and the information when the button is triggered.
Inheritance: IButtonState, IButtonAction
Example #1
0
        /// <summary>
        /// Starts a configuration for a button press.
        /// </summary>
        /// <param name="button">The button.</param>
        /// <returns>An button state.</returns>
        public IButtonState On(Button button)
        {
            var builder = new ButtonAction(button);
            RegisteredButtons.Add(button, builder);

            return builder;
        }