public static string CostDistributionToString(CostDistribution costDist) { switch (costDist) { default: return(""); case CostDistribution.PerApartment: return("Od lokalu"); case CostDistribution.PerApartmentTotalArea: return("Od powierzchni całkowitej (m2)"); case CostDistribution.PerLocators: return("Ilość mieszkanów"); case CostDistribution.PerAdditionalArea: return("Od powierzchni przynależnej (m2)"); case CostDistribution.PerApartmentArea: return("Od powierzchni mieszkania (m2)"); } }
public CostDistributionCollectionItem(CostDistribution value) { this.Name = EnumCostDistribution.CostDistributionToString(value); this.EnumValue = (int)value; }