public static void OpenNewObjectWindow(NewObjectWindow.CreationDataClass initData) { var window = new NewObjectWindow(); window.creationData = initData; EditorForm.Instance.WorkspaceController.AddDockWindow(window, true, true); }
public bool Init(Type settingsClass, NewObjectWindow window) // bool fileCreation ) { settings = (NewObjectSettings)settingsClass.InvokeMember("", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.CreateInstance | BindingFlags.Instance, null, null, null); if (!settings.Init(window)) // fileCreation ); { return(false); } hierarchicalContainer1.OverrideGroupDisplayName += HierarchicalContainer1_OverrideGroupDisplayName; hierarchicalContainer1.OverridePropertyDisplayName += HierarchicalContainer1_OverridePropertyDisplayName; hierarchicalContainer1.OverrideMemberDescription += HierarchicalContainer1_OverrideMemberDescription; hierarchicalContainer1.SetData(null, new object[] { settings }); return(true); }
//bool fileCreation; //[Browsable( false )] //public bool FileCreation //{ // get { return fileCreation; } //} public virtual bool Init(NewObjectWindow window) // bool fileCreation ) { this.window = window; //this.fileCreation = fileCreation; return(true); }