예제 #1
0
        public void AddRawInstrument(RawInstrument ri, InstrumentShared ins)
        {
            ProductClassType pi;

            if (this.productClass.ContainsKey(ri.productFamily))
            {
                pi = this.productClass[ri.productFamily];
            }
            else
            {
                pi = new ProductClassType(ri.productFamily);
                this.productClass.Add(ri.productFamily, pi);
            }

            pi.AddRawInstrument(ri, ins);
        }
예제 #2
0
        public void AddRawInstrument(RawInstrument ri, InstrumentShared ins)
        {
            ProductClassType pi;

            if (this.productClass.ContainsKey(ri.productFamily))
            {
                pi = this.productClass[ri.productFamily];
            }
            else
            {
                pi = new ProductClassType(ri.productFamily);
                this.productClass.Add(ri.productFamily, pi);
            }

            pi.AddRawInstrument(ri, ins);
        }