Example #1
0
        public PModel(IPDBLink db, string modelCode, bool deferredLoad, PPlatform platform)
        {
            this._db = db;
            this._modelCode = modelCode;
            this._listObjects = new Dictionary<int, PBaseObject>();
            this.Templates = new PTemplates(null); // старье
            this.DeferredLoad = deferredLoad;
            this.Platform = platform;

            this.LoadModel(); // хз?
        }
Example #2
0
 public PProfileCut(IPDBLink db, string modelCode, bool defferedLoad, Control navigatorControl)
     : base(db, modelCode, defferedLoad)
 {
     _conf = new RConfig();
     _navigatorControl = navigatorControl;
 }
Example #3
0
        public AModel(IAHost host, string connectionString, string modelCode, bool defferedLoad)
        {
            _db = new AFbLink(connectionString);

            AHost ahost = new AHost(host);

            _model = new PPlatform(_db, modelCode, defferedLoad, ahost).Model;

            //_model.HostRequest += new EventHandler<HostQueryEventArgs>(ProcessHostRequest);
        }
Example #4
0
 public PPlatform(IPDBLink db, string modelCode, bool defferedLoad, IPHost host)
 {
     Host = host;
     Model = new PModel(db, modelCode, defferedLoad, this);
 }