Ejemplo n.º 1
0
        Stream(ArrayList data, MEPCurveType mepCurType)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(MEPCurveType)));

            data.Add(new Snoop.Data.Object("Cross", mepCurType.Cross));
            data.Add(new Snoop.Data.Object("Elbow", mepCurType.Elbow));
            data.Add(new Snoop.Data.Object("Multi shape transition", mepCurType.MultiShapeTransition));
            data.Add(new Snoop.Data.String("Preferred junction type", mepCurType.PreferredJunctionType.ToString()));
            data.Add(new Snoop.Data.Double("Roughness", mepCurType.Roughness));
            data.Add(new Snoop.Data.Object("Tap", mepCurType.Tap));
            data.Add(new Snoop.Data.Object("Tee", mepCurType.Tee));
            data.Add(new Snoop.Data.Object("Transition", mepCurType.Transition));
            data.Add(new Snoop.Data.Object("Union", mepCurType.Union));

            DuctType ductType = mepCurType as DuctType;

            if (ductType != null)
            {
                Stream(data, ductType);
                return;
            }

            FlexDuctType flexDuctType = mepCurType as FlexDuctType;

            if (flexDuctType != null)
            {
                Stream(data, flexDuctType);
                return;
            }

            PipeType pipeType = mepCurType as PipeType;

            if (pipeType != null)
            {
                Stream(data, pipeType);
                return;
            }

            FlexPipeType flexPipeType = mepCurType as FlexPipeType;

            if (flexPipeType != null)
            {
                Stream(data, flexPipeType);
                return;
            }
        }
Ejemplo n.º 2
0
        private void Stream(ArrayList data, FlexPipeType flexPipeType)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(FlexPipeType)));

             // Nothing at this level yet
        }
Ejemplo n.º 3
0
        Stream(ArrayList data, FlexPipeType flexPipeType)
        {
            data.Add(new Snoop.Data.ClassSeparator(typeof(FlexPipeType)));

            // Nothing at this level yet
        }