Ejemplo n.º 1
0
        public static SimpleButton CreateButton(ButtonInfo info)
        {
            var button = new SimpleButton();

            button.ButtonStyle   = DevExpress.XtraEditors.Controls.BorderStyles.UltraFlat;
            button.Dock          = DockStyle.Top;
            button.Image         = info.Logo;
            button.ImageLocation = ImageLocation.MiddleCenter;
            button.ToolTip       = info.Tooltip;
            if (info.Action != null)
            {
                button.Click += (o, e) => info.Action();
            }
            return(button);
        }
		public static SimpleButton CreateButton(ButtonInfo info)
		{
			var button = new SimpleButton();
			button.ButtonStyle = DevExpress.XtraEditors.Controls.BorderStyles.UltraFlat;
			button.Dock = DockStyle.Top;
			button.Image = info.Logo;
			button.ImageLocation = ImageLocation.MiddleCenter;
			button.ToolTip = info.Tooltip;
			if (info.Action != null)
				button.Click += (o, e) => info.Action();
			return button;
		}