private void LoadPropertyType()
{
DocProperty docProperty = (DocProperty)this.m_target;
this.textBoxPropertyDataPrimary.Text = docProperty.PrimaryDataType;
this.textBoxPropertyDataSecondary.Text = docProperty.SecondaryDataType;
switch (docProperty.PropertyType)
{
case DocPropertyTemplateTypeEnum.P_SINGLEVALUE:
this.buttonPropertyDataPrimary.Enabled = true;
this.buttonPropertyDataSecondary.Enabled = false;
break;
case DocPropertyTemplateTypeEnum.P_BOUNDEDVALUE:
this.buttonPropertyDataPrimary.Enabled = true;
this.buttonPropertyDataSecondary.Enabled = false;
break;
case DocPropertyTemplateTypeEnum.P_ENUMERATEDVALUE:
this.buttonPropertyDataPrimary.Enabled = false; // fixed to IfcLabel
this.buttonPropertyDataSecondary.Enabled = true;
break;
case DocPropertyTemplateTypeEnum.P_LISTVALUE:
this.buttonPropertyDataPrimary.Enabled = true;
this.buttonPropertyDataSecondary.Enabled = false;
break;
case DocPropertyTemplateTypeEnum.P_TABLEVALUE:
this.buttonPropertyDataPrimary.Enabled = true;
this.buttonPropertyDataSecondary.Enabled = true;
break;
case DocPropertyTemplateTypeEnum.P_REFERENCEVALUE:
this.buttonPropertyDataPrimary.Enabled = true;
this.buttonPropertyDataSecondary.Enabled = true;
break;
case DocPropertyTemplateTypeEnum.COMPLEX:
this.buttonPropertyDataPrimary.Enabled = false;
this.buttonPropertyDataSecondary.Enabled = false;
break;
}
}