Ejemplo n.º 1
0
 protected void FillElemPropNameDesc(ISpecElement elem, string posPropertyName, string descPropertyName)
 {
     if (elem != null && elem.Amount != 0)
     {
         // Поз
         Block.FillPropValue(posPropertyName, elem.Mark);
         // Опис
         Block.FillPropValue(descPropertyName, elem.GetDesc());
     }
     else
     {
         // Поз
         Block.FillPropValue(posPropertyName, "", isRequired: false);
         // Опис
         Block.FillPropValue(descPropertyName, "", isRequired: false);
     }
 }