private void RefreshControls() { ProjectEditWidget.Attach(EditingProject); KnowledgeBaseEditWidget.Attach(EditingProject.KB, EditingProject); InputsEditWidget.Attach(EditingProject, EditingProject.Inputs); RefreshBehaviorControls(); RefreshBehaviorSetControls(); RefreshArchetypeControls(); RefreshScenarioControls(); }
private void RefreshControls() { ProjectEditWidget.Attach(EditingProject); KnowledgeBaseEditWidget.Attach(EditingProject.KB, EditingProject); InputsEditWidget.Attach(EditingProject, EditingProject.Inputs); BehaviorsEditWidget.Attach(EditingProject); BehaviorSetsEditWidget.Attach(EditingProject); ArchetypesEditWidget.Attach(EditingProject); ScenariosEditWidget.Attach(EditingProject); SetWindowCaption(EditingProject.IsDirty); }
private void SetUpProject() { RefreshControls(); EditingProject.ItemDelete += (e, args) => { RefreshControls(); }; EditingProject.ProjectDirtied += (dirty) => { SetWindowCaption(dirty); ProjectEditWidget.Attach(EditingProject); }; }