Example #1
0
 public GLib(ConnectionFactory connFactory, Rect bounds, IIndexer indexer)
 {
     Init(connFactory);
     this.indexer = indexer == null ? new Indexer() : indexer;
     this.bounds  = bounds;
     this.SMax    = (int)(Math.Max(bounds.Width, bounds.Height) * unitMeasure * 10);
     Scales.InitScales();
     updateAttr[Constants.updateAttrCreated] = true;
     SetChanged();
 }
Example #2
0
 void Init(ConnectionFactory connFactory)
 {
     globalId         = libCount++;
     this.connFactory = connFactory;
     id = Constants.currentLib;
     int[] poolIds = { Constants.minRecordId };
     idGenerator  = new IdGenerator(Constants.appPoolSize, Constants.poolSize, poolIds, connFactory);
     scales       = new Scales(this);
     colors       = new Colors(this);
     images       = new Images(this);
     layers       = new Layers(this);
     views        = new Views(this);
     bgImages     = new BgImages(this);
     customTables = new CustomTables(this);
 }