public Stetic.WidgetInfo AddNewComponent(XmlElement element) { Stetic.WidgetInfo c = SteticProject.AddNewComponent(element); // Register the window now, don't wait for the WidgetAdded event since // it may take some time, and the GuiBuilderWindow object is needed // just after this call RegisterWindow(c, true); return(c); }
public void AddNewComponent(string fileName) { object ob = SteticProject.AddNewComponent(fileName); if (ob is Stetic.WidgetInfo) { var c = (Stetic.WidgetInfo)ob; RegisterWindow(c, true); } }
public Stetic.WidgetInfo AddNewComponent(Stetic.ComponentType type, string name) { Stetic.WidgetInfo c = SteticProject.AddNewComponent(type, name); RegisterWindow(c, true); return(c); }