public void DataToControls()
{
if (_uut != null)
{
edtName.Text = _uut.name;
edtVersion.Value = _uut.version;
edtUUID.Value = _uut.uuid;
securityClassificationControl.Classified = _uut.Classified;
securityClassificationControl.SecurityClassification = _uut.SecurityClassification;
//--------------------------------------------------------------//
//--- Only Enable the Add UUID Button if the uuid is missing ---//
//--------------------------------------------------------------//
btnAddUUID.Enabled = String.IsNullOrEmpty(_uut.uuid);
if (_uut.Item is HardwareUUT)
{
var huut = _uut.Item as HardwareUUT;
hardwareUUTControl.HardwareUUT = huut;
rbHardware.Checked = true;
}
else if (_uut.Item is SoftwareUUT)
{
var suut = _uut.Item as SoftwareUUT;
softwareUUTControl.SoftwareUUT = suut;
rbSoftware.Checked = true;
}
setControlStates();
}
}