Esempio n. 1
0
 protected override bool IsBufferSynchronizedWithSelectedElement()
 {
     if (!(EB_CrossSection.GetValueOrDefault(0) == _selectedRow.CrossSection))
     {
         return(false);
     }
     if (!(EB_Diameter.GetValueOrDefault(0) == _selectedRow.Diameter))
     {
         return(false);
     }
     if (!(EB_RTS.GetValueOrDefault(0) == _selectedRow.RTS))
     {
         return(false);
     }
     if (!(EB_WeightPerLength.GetValueOrDefault(0) == _selectedRow.WeightPerLength))
     {
         return(false);
     }
     if (!(EB_ThermalExpansionCoefficient.GetValueOrDefault(0) == _selectedRow.ThermalExpansionCoefficient))
     {
         return(false);
     }
     if (!(EB_ModulusOfElasticity.GetValueOrDefault(0) == _selectedRow.ModulusOfElasticity))
     {
         return(false);
     }
     if (!(EB_Resistance20oCPerLength.GetValueOrDefault(0) == _selectedRow.Resistance20oCPerLength))
     {
         return(false);
     }
     if (!(EB_Category == _selectedRow.Category))
     {
         return(false);
     }
     if (!(EB_CodeName == _selectedRow.CodeName))
     {
         return(false);
     }
     if (!(EB_Description == _selectedRow.Description))
     {
         return(false);
     }
     return(true);
 }
Esempio n. 2
0
 protected override Conductor GetElementFromElementBuffer()
 {
     return(new Conductor(EB_Category, EB_CodeName, EB_CrossSection.GetValueOrDefault(0), EB_Diameter.GetValueOrDefault(0), EB_RTS.GetValueOrDefault(0), EB_WeightPerLength.GetValueOrDefault(0), EB_ThermalExpansionCoefficient.GetValueOrDefault(0), EB_ModulusOfElasticity.GetValueOrDefault(0), EB_Resistance20oCPerLength.GetValueOrDefault(0), EB_Description));
 }