private void LoadDoerEvent(string id) { var classPath = GetClassPath(id); Type type = TypeUtil.GetType(classPath); DoerEvent doerEvent = this.AddChildWithoutInit(null, type) as DoerEvent; DBase doerEventDBase = this._NewDBase(id); doerEvent.factory = this; doerEvent.SetDBase(doerEventDBase); doerEventDBase.SetDoer(doerEvent); doerEvent.Init(); doerEvent.PostInit(); doerEvent.SetIsEnabled(true, false); doerEventDict[id] = doerEvent; }
//////////////////////////////SetXXXX//////////////////////// public void SetDBase(DBase dbase) { this.dbase = dbase; }