void IServerUI.LayoutInitialized(object sender, LayoutInitializedEventArgs e) { var entity = e.Entity as Entity; if (entity == null) { return; } else if (entity.Schema.SchemaName == "tabComboBoxSchema" && !isTabComboBoxSchemaExistsOnElement) { e.Editor.SetValue("ComboBoxUV", uvList[1], DisplayUnitType.DUT_METERS); e.Editor.SetValue("UnitComboBoxDoubleConstructor", 15, DisplayUnitType.DUT_METERS); e.Editor.SetValue("ComboBoxXYZ", xyzList[2], DisplayUnitType.DUT_METERS); e.Editor.SetValue("ComboBoxRebar", rebarList[2], DisplayUnitType.DUT_UNDEFINED); } else if (entity.Schema.SchemaName == "tabComboBoxSchema" && isTabComboBoxSchemaExistsOnElement) { var tab = new TabComboBoxSchema(entity, null); e.Editor.SetValue("ComboBoxUV", tab.ComboBoxUV, DisplayUnitType.DUT_METERS); e.Editor.SetValue("ComboBoxXYZ", tab.ComboBoxXYZ, DisplayUnitType.DUT_METERS); e.Editor.SetValue("UnitComboBoxDoubleConstructor", tab.UnitComboBoxDoubleConstructor, DisplayUnitType.DUT_METERS); } }
public void LayoutInitialized(object sender, LayoutInitializedEventArgs e) { }