/// <summary> /// Constructor /// </summary> /// <param name="service"></param> public FlexibleLayoutEditorContext(IFusionService service) { _service = service; _widgetSet = _service.GetApplicationWidgets(); _templateSet = _service.GetApplicationTemplates(); _containerSet = _service.GetApplicationContainers(); }
/// <summary> /// Constructor /// </summary> /// <param name="service"></param> public FlexibleLayoutEditorContext(IFusionService service) { _service = service; _widgetSet = _service.GetApplicationWidgets(); _templateSet = _service.GetApplicationTemplates(); _containerSet = _service.GetApplicationContainers(); }
/// <summary> /// Gets a specific Widget Info by name /// </summary> /// <param name="set"></param> /// <param name="name"></param> /// <returns></returns> public static IWidgetInfo FindWidget(this IApplicationDefinitionWidgetInfoSet set, string name) { Check.NotNull(set, "set"); //NOXLATE Check.NotEmpty(name, "name"); //NOXLATE foreach (var wgt in set.WidgetInfo) { if (name.Equals(wgt.Type)) { return(wgt); } } return(null); }