예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LabelHelper" /> class.
 /// </summary>
 /// <param name="strategy">The strategy.</param>
 /// <param name="text">The text.</param>
 /// <param name="status">The status.</param>
 /// <param name="htmlAttributes">The HTML attributes.</param>
 public LabelHelper(IStatusStrategy strategy, string text, BootstrapStatus status, object htmlAttributes)
 {
     this.strategy       = strategy;
     this.text           = text;
     this.status         = status;
     this.htmlAttributes = htmlAttributes;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BadgeHelper" /> class.
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="strategy">The strategy.</param>
 /// <param name="text">The text.</param>
 /// <param name="status">The status.</param>
 /// <param name="htmlAttributes">The HTML attributes.</param>
 public BadgeHelper(HtmlHelper helper, IStatusStrategy strategy, string text, BootstrapStatus status, object htmlAttributes)
 {
     this.helper = helper;
     this.strategy = strategy;
     this.status = status;
     this.htmlAttributes = htmlAttributes;
     this.text = text;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BadgeHelper" /> class.
 /// </summary>
 /// <param name="helper">The helper.</param>
 /// <param name="strategy">The strategy.</param>
 /// <param name="text">The text.</param>
 /// <param name="status">The status.</param>
 /// <param name="htmlAttributes">The HTML attributes.</param>
 public BadgeHelper(HtmlHelper helper, IStatusStrategy strategy, string text, BootstrapStatus status, object htmlAttributes)
 {
     this.helper         = helper;
     this.strategy       = strategy;
     this.status         = status;
     this.htmlAttributes = htmlAttributes;
     this.text           = text;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ButtonHelper" /> class.
 /// </summary>
 /// <param name="strategy">The strategy.</param>
 /// <param name="text">The text.</param>
 /// <param name="status">The status.</param>
 /// <param name="htmlAttributes">The HTML attributes.</param>
 public ButtonHelper(HtmlHelper helper, IStatusStrategy strategy, string text, string action, string controller, ButtonStatus status, object htmlAttributes)
 {
     this.strategy = strategy;
     this.text = text;
     this.status = status;
     this.htmlAttributes = htmlAttributes;
     this.helper = helper;
     this.action = action;
     this.controller = controller;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ButtonHelper" /> class.
 /// </summary>
 /// <param name="strategy">The strategy.</param>
 /// <param name="text">The text.</param>
 /// <param name="status">The status.</param>
 /// <param name="htmlAttributes">The HTML attributes.</param>
 public ButtonHelper(HtmlHelper helper, IStatusStrategy strategy, string text, string action, string controller, ButtonStatus status, object htmlAttributes)
 {
     this.strategy       = strategy;
     this.text           = text;
     this.status         = status;
     this.htmlAttributes = htmlAttributes;
     this.helper         = helper;
     this.action         = action;
     this.controller     = controller;
 }