예제 #1
0
 /// <summary>
 /// Refreshes the simulation extension data from the GroundFrame.SQL database
 /// </summary>
 public new void RefreshFromSQLDB()
 {
     base.RefreshFromSQLDB();
     this.LoadSimErasFromSQLDB();
     this._Locations     = new LocationCollection(this, this._SQLConnector);
     this._LocationNodes = new LocationNodeCollection(this, this._SQLConnector);
 }
예제 #2
0
        /// <summary>
        /// Instantiates a new Simulation Extension from the GroundFrame.SQL database
        /// </summary>
        /// <param name="ID">The ID of the GroundFrame.SQL database simulation record</param>
        /// <param name="SQLConnector">The GFSqlConnector to the GroundFrame.SQL database</param>
        public SimulationExtension(int ID, GFSqlConnector SQLConnector) : base(ID, SQLConnector)
        {
            //Validate Arguments
            ArgumentValidation.ValidateSQLConnector(SQLConnector, Globals.UserSettings.GetCultureInfo());

            this._SQLConnector = new GFSqlConnector(SQLConnector);
            //Load the data
            this.LoadSimErasFromSQLDB();
            this._Locations     = new LocationCollection(this, SQLConnector);
            this._LocationNodes = new LocationNodeCollection(this, SQLConnector);
        }