public WidgetInstance(WidgetType wtype) { _wtype = wtype; _widget = (IWidget)Activator.CreateInstance(wtype.Type); _config = new WidgetConfig(); }