public InstallationEquipmentModule InstallationModule(Installation installation, InstallationEquipmentModule parentModule)
        {
            InstallationEquipmentModule m = new InstallationEquipmentModule()
            {
                Installation    = installation,
                ParentModule    = parentModule,
                EquipmentModule = this
            };

            foreach (var module in this.SubordonateModules)
            {
                m.SubordonateModules.Add(module.InstallationModule(installation, m));
            }

            foreach (var part in this.CurrentParts)
            {
                m.InstallationEquipmentParts.Add(part.InstallationPart(m));
            }

            foreach (var labour in this.EquipmentLabours)
            {
                m.InstallationEquipmentLabours.Add(labour.InstallationLabour(m));
            }

            return(m);
        }
        public InstallationEquipmentLabour InstallationLabour(InstallationEquipmentModule parentModule)
        {
            InstallationEquipmentLabour l = new InstallationEquipmentLabour()
            {
                EquipmentLabour             = this,
                InstallationEquipmentModule = parentModule
            };

            return(l);
        }
Example #3
0
        public InstallationEquipmentPart InstallationPart(InstallationEquipmentModule parentModule)
        {
            InstallationEquipmentPart p = new InstallationEquipmentPart()
            {
                InstallationEquipmentModule = parentModule,
                EquipmentPart = this
            };

            return(p);
        }