コード例 #1
0
 // default constructor
 public AppPartDataAdapter(int appID, string baseURI)
 {
     this._appID = appID;
     this._baseURI = baseURI;
     this._dbHelper = new ClayUIDatabaseHelper(this._appID, this._baseURI);
     this._db = new SqlCeDataAdapter();
 }
コード例 #2
0
        // define default constructor
        public ClayUIAppBase(int applicationID, string baseURI)
        {
            this._applicationID = applicationID;
            this._baseUri = baseURI;

            // create database if necessary and get connection string
            _dbHelper = new ClayUIDatabaseHelper(this._applicationID, this._baseUri);
            this._connStr = _dbHelper.DatabaseConnStr;

            // instantiate data util objects
            _appPartUtils = new AppPartUtils(this._applicationID, this._baseUri);
            _elementUtils = new ElementUtils(this._applicationID, this._baseUri);
            _elementOptionUtils = new ElementOptionUtils(this._applicationID, this._baseUri);

            // load app part data
            this.SyncLayoutStructure();
        }