/// <summary>
 /// 构造
 /// </summary>
 public DataModelDesignModel()
 {
     Current = this;
     Context = new DesignContext
     {
         Model = this
     };
     GlobalConfig.SetGlobal(new DesignGlobal
     {
         Model   = this,
         Context = Context
     });
     LoadUserScreen();
     ExtendConfig = new ExtendConfigModel
     {
         Model   = this,
         Context = Context
     };
     Tree = new TreeModel
     {
         Model   = this,
         Context = Context
     };
     ConfigIo = new ConfigIoModel
     {
         Model   = this,
         Context = Context
     };
     NormalCode = new NormalCodeModel
     {
         Model   = this,
         Context = Context
     };
     Editor = new EditorModel
     {
         Model   = this,
         Context = Context
     };
     Editor.CreateMenus(this);
     ExtendConfig.Editor = Editor;
     Context.Editor      = Editor;
     ConfigIo.Editor     = Editor;
     NormalCode.Editor   = Editor;
     Tree.Editor         = Editor;
 }
Пример #2
0
        /// <summary>
        /// 构造
        /// </summary>
        public DataModelDesignModel()
        {
            Current = this;
            Context = new DesignContext();

            Global = new DesignGlobal
            {
                Model      = this,
                Dispatcher = Dispatcher,
                Context    = Context
            };
            GlobalConfig.SetGlobal(Global);
            ExtendConfig = new ExtendConfigModel
            {
                Model      = this,
                Dispatcher = Dispatcher,
                Context    = Context
            };
            Tree = new TreeModel
            {
                Model      = this,
                Dispatcher = Dispatcher,
                Context    = Context
            };
            ConfigIo = new ConfigIoModel
            {
                Model      = this,
                Dispatcher = Dispatcher,
                Context    = Context
            };
            NormalCode = new NormalCodeModel
            {
                Model      = this,
                Dispatcher = Dispatcher,
                Context    = Context
            };
        }