Beispiel #1
0
        internal static void AddRoomInfoForViz(FlatInfo fi, string ExcelDataPath)
        {
            List <FlatType> fTypes = Utils.getFlatTypesFromXLSX(ExcelDataPath);

            foreach (RoomInfo ri in fi.Flats)
            {
                // Получение данных по типу квартиры
                FlatType ft = fTypes.Find(x => x.Type == ri.Type);
                ft.SetRoominFoParameters(ri);
            }
        }
Beispiel #2
0
        internal static void AddInfoForVisualisation(GeneralObject GenObject, string ExcelDataPath)
        {
            if (fTypes == null)
            {
                fTypes = Utils.getFlatTypesFromXLSX(ExcelDataPath);
            }


            foreach (HouseInfo hi in GenObject.Houses)
            {
                foreach (FlatInfo fi in hi.Sections)
                {
                    foreach (RoomInfo ri in fi.Flats)
                    {
                        // Получение данных по типу квартиры
                        FlatType ft = fTypes.Find(x => x.Type == ri.Type);
                        ft.SetRoominFoParameters(ri);
                    }
                }
            }
        }