Beispiel #1
0
 internal CounterWidgetBuilder(HtmlHelper htmlHelper, DashboardWidget model, string id)
 {
     _htmlHelper = htmlHelper;
     _id = id;
     _model = new CounterWidget(model)
     {
         WrapID = id
     };
 }
Beispiel #2
0
 public static DashboardWidgetBuilder DashboardWidget(this HtmlHelper htmlhelper, DashboardWidget model)
 {
     return new DashboardWidgetBuilder(htmlhelper, model);
 }
Beispiel #3
0
 public CounterWidgetBuilder CounterWidget(DashboardWidget model, string wrapID = null)
 {
     return new CounterWidgetBuilder(_htmlHelper, model, wrapID ?? "counter_" + Guid.NewGuid().ToString("N"));
 }
Beispiel #4
0
        public DashboardWidgetBuilder(HtmlHelper htmlHelper, DashboardWidget model)
        {
            _htmlHelper = htmlHelper;

            _model = Framework.ObjectHelper.CreateAndCopyObject<Widget>(model);
        }