| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.Entity; |
| | | |
| | | namespace HDL_ON.UI |
| | |
| | | for (int i = 0; i < DB_ResidenceData.residenceData.floors.Count + 1; ) |
| | | { |
| | | newFloorName = ++i + " F"; |
| | | if (!DB_ResidenceData.residenceData.floors.Contains(newFloorName)) |
| | | if (null != DB_ResidenceData.residenceData.floors.Find((obj)=>obj.name == newFloorName)) |
| | | { |
| | | break; |
| | | } |
| | | } |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.AddFloors,newFloorName , callBackAction,StringId.FloorNameCannotBeEmpty,StringId.AddFloorFailed_FloorAlreadyExist,DB_ResidenceData.residenceData.floors); |
| | | var fs = new List<string>(); |
| | | foreach(var f in DB_ResidenceData.residenceData.floors) |
| | | { |
| | | fs.Add(f.name); |
| | | } |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.AddFloors,newFloorName , callBackAction,StringId.FloorNameCannotBeEmpty, |
| | | StringId.AddFloorFailed_FloorAlreadyExist,fs); |
| | | break; |
| | | case "rooms": |
| | | callBack("", ""); |