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)); }