Ejemplo n.º 1
0
        public void AddWidget(string creatorName)
        {
            var widget = WidgetCreatorRegistry.CreateWidgetFor(creatorName);

            _entityService.AddWidgetToEntityScreen(SelectedEntityScreen.Name, widget);
            widget.Height      = 100;
            widget.Width       = 100;
            widget.AutoRefresh = true;
            Widgets.Add(WidgetCreatorRegistry.CreateWidgetViewModel(widget, _applicationState));
        }
Ejemplo n.º 2
0
        public void AddWidget(string creatorName)
        {
            var widget = WidgetCreatorRegistry.CreateWidgetFor(creatorName);

            _resourceService.AddWidgetToResourceScreen(SelectedResourceScreen.Name, widget);
            widget.Height      = 100;
            widget.Width       = 100;
            widget.AutoRefresh = true;
            Widgets.Add(WidgetCreatorRegistry.CreateWidgetViewModel(widget));
        }