Exemplo n.º 1
0
 protected override bool IsBufferSynchronizedWithSelectedElement()
 {
     if (!(EB_ArmLength.GetValueOrDefault(0) == _selectedRow.ArmLength))
     {
         return(false);
     }
     if (!(EB_ArmWeight.GetValueOrDefault(0) == _selectedRow.ArmWeight))
     {
         return(false);
     }
     if (!(EB_OpeningAngle.GetValueOrDefault(0) == _selectedRow.OpeningAngle))
     {
         return(false);
     }
     if (!(EB_SelectedType == GetTypeFromSelectedElement()))
     {
         return(false);
     }
     if (!(EB_CodeName == _selectedRow.CodeName))
     {
         return(false);
     }
     if (!(EB_Description == _selectedRow.Description))
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 2
0
        }                                            // no need to sort anything here

        protected override InsulatorSet GetElementFromElementBuffer()
        {
            return(new InsulatorSet(GetCategoryFromTypedElement(), EB_CodeName, EB_Description, EB_ArmLength.GetValueOrDefault(0), EB_ArmWeight.GetValueOrDefault(0), EB_OpeningAngle.GetValueOrDefault(0)));
        }