private void ControlsToData()
{
if (HasValue())
{
if (_ACPower == null)
_ACPower = new PowerSpecificationsAC();
_ACPower.phaseSpecified = cmbPhase.SelectedIndex > 0;
_ACPower.phase = cmbPhase.SelectedIndex;
_ACPower.Description = edtDescription.GetValue<string>();
_ACPower.Voltage = lmtVoltage.Limit;
_ACPower.Frequency = lmtFrequency.Limit;
_ACPower.Item = lmtAmpresPower.Limit;
if (rbAmpres.Checked )
_ACPower.ItemElementName = PowerSpecificationsACItemChoiceType2.Amperage;
else if( rbPowerDraw.Checked )
_ACPower.ItemElementName = PowerSpecificationsACItemChoiceType2.PowerDraw;
_ACPower.ConnectorPins = connectorLocationPinListControl.ConnectorLocations;
}
else
{
_ACPower = null;
}
}