Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        public void AddNewComponent(string fileName)
        {
            object ob = SteticProject.AddNewComponent(fileName);

            if (ob is Stetic.WidgetInfo)
            {
                var c = (Stetic.WidgetInfo)ob;
                RegisterWindow(c, true);
            }
        }
Esempio n. 3
0
 public Stetic.WidgetInfo AddNewComponent(Stetic.ComponentType type, string name)
 {
     Stetic.WidgetInfo c = SteticProject.AddNewComponent(type, name);
     RegisterWindow(c, true);
     return(c);
 }