Пример #1
0
        public MindBuilder(IAIMgr pMgr)
        {
            //constructor code
            //initalise all instance variables
            _mAIMgr = pMgr;

            _mAIFactory = new AIFactory();

            _idCounter = 0;
        }
Пример #2
0
        /// <summary>
        /// Adds the <see cref="AIID"/> editor.
        /// </summary>
        /// <param name="aiFactory">The <see cref="IAIFactory"/> instance.</param>
        /// <exception cref="ArgumentNullException"><paramref name="aiFactory"/> is null.</exception>
        public static void AddAIIDEditor(IAIFactory aiFactory)
        {
            if (aiFactory == null)
                throw new ArgumentNullException("aiFactory");

            if (_addedAIID)
                return;

            _addedAIID = true;

            AIIDUITypeEditorForm.AIFactory = aiFactory;

            AddEditorsHelper(new EditorTypes(typeof(AIID), typeof(AIIDEditor)), new EditorTypes(typeof(AIID?), typeof(AIIDEditor)));
        }
Пример #3
0
        /// <summary>
        /// Adds the <see cref="AIID"/> editor.
        /// </summary>
        /// <param name="aiFactory">The <see cref="IAIFactory"/> instance.</param>
        /// <exception cref="ArgumentNullException"><paramref name="aiFactory"/> is null.</exception>
        public static void AddAIIDEditor(IAIFactory aiFactory)
        {
            if (aiFactory == null)
            {
                throw new ArgumentNullException("aiFactory");
            }

            if (_addedAIID)
            {
                return;
            }

            _addedAIID = true;

            AIIDUITypeEditorForm.AIFactory = aiFactory;

            AddEditorsHelper(new EditorTypes(typeof(AIID), typeof(AIIDEditor)), new EditorTypes(typeof(AIID?), typeof(AIIDEditor)));
        }