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