コード例 #1
0
ファイル: Sensor.cs プロジェクト: eugenelepekhin/LogicCircuit
        // Constructor
        public SensorSet(CircuitProject store)
        {
            ITableSnapshot table = store.Table("Sensor");

            if (table != null)
            {
                Debug.Assert(store.IsFrozen, "The store should be frozen");
                this.Table = (TableSnapshot <SensorData>)table;
            }
            else
            {
                Debug.Assert(!store.IsFrozen, "In order to create table, the store should not be frozen");
                this.Table = SensorData.CreateTable(store);
            }
            this.InitializeSensorSet();
        }