示例#1
0
        private void RefreshControls()
        {
            ProjectEditWidget.Attach(EditingProject);
            KnowledgeBaseEditWidget.Attach(EditingProject.KB, EditingProject);
            InputsEditWidget.Attach(EditingProject, EditingProject.Inputs);

            RefreshBehaviorControls();
            RefreshBehaviorSetControls();
            RefreshArchetypeControls();
            RefreshScenarioControls();
        }
示例#2
0
        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);
        }
示例#3
0
        private void SetUpProject()
        {
            RefreshControls();

            EditingProject.ItemDelete += (e, args) =>
            {
                RefreshControls();
            };

            EditingProject.ProjectDirtied += (dirty) =>
            {
                SetWindowCaption(dirty);
                ProjectEditWidget.Attach(EditingProject);
            };
        }