private LinkButtonViewBase getButtonWidgetDisabled(string buttonText)
        {
            LinkButtonViewBase widget = new LinkButtonViewBase(buttonText,
                                                               this.fontSize,
                                                               this.padding,
                                                               this.textColor);

            return(widget);
        }
        public LinkButtonViewBase getButtonWidgetNormal(string buttonText)
        {
            LinkButtonViewBase widget = new LinkButtonViewBase(buttonText,
                                                               this.fontSize,
                                                               this.padding,
                                                               this.textColor,
                                                               true);

            return(widget);
        }
Esempio n. 3
0
        public Button Generate(string buttonText)
        {
            //Widgets to show during the four button states
            LinkButtonViewBase buttonWidgetPressed  = getButtonWidgetPressed(buttonText);
            LinkButtonViewBase buttonWidgetHover    = getButtonWidgetHover(buttonText);
            LinkButtonViewBase buttonWidgetNormal   = getButtonWidgetNormal(buttonText);
            LinkButtonViewBase buttonWidgetDisabled = getButtonWidgetDisabled(buttonText);

            //Create container for the three state widgets for the button
            ButtonViewStates buttonViewWidget = new ButtonViewStates(buttonWidgetNormal, buttonWidgetHover, buttonWidgetPressed, buttonWidgetDisabled);

            //Create button based on view container widget
            return(new Button(0, 0, buttonViewWidget)
            {
                Margin = margin,
                Cursor = Cursors.Hand,
            });
        }
		private LinkButtonViewBase getButtonWidgetDisabled(string buttonText)
		{
			LinkButtonViewBase widget = new LinkButtonViewBase(buttonText,
															   this.fontSize,
															   this.padding,
															   this.textColor);
			return widget;
		}
		public LinkButtonViewBase getButtonWidgetNormal(string buttonText)
		{
			LinkButtonViewBase widget = new LinkButtonViewBase(buttonText,
															   this.fontSize,
															   this.padding,
															   this.textColor,
															   true);
			return widget;
		}