Beispiel #1
0
        private SpButton CreateProductButton(Product arg)
        {
            var button = new SpButton
            {
                Text = arg.Name,
                Tag  = arg,
                Size = menuButtonSize,
                Font = new Font(Font.FontFamily, 10f)
            };

            button.ApplyTheme(Theme);
            button.BackColor = MaterialColors.BlueGray();

            button.Click += ProductMenuClick;

            return(button);
        }