Esempio n. 1
0
        // Constructor
        public WireSet(CircuitProject store)
        {
            ITableSnapshot table = store.Table("Wire");

            if (table != null)
            {
                Debug.Assert(store.IsFrozen, "The store should be frozen");
                this.Table = (TableSnapshot <WireData>)table;
            }
            else
            {
                Debug.Assert(!store.IsFrozen, "In order to create table, the store should not be frozen");
                this.Table = WireData.CreateTable(store);
            }
            this.InitializeWireSet();
        }
Esempio n. 2
0
        // Constructor
        public CollapsedCategorySet(CircuitProject store)
        {
            ITableSnapshot table = store.Table("CollapsedCategory");

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