private static void SetSampleTypeValue(DetailsSaveFieldModel field, IEditableRoot editableRoot) { var model = field.Value as SampleTypeModel; if (model != null) { editableRoot.SetSampleType(field.SystemName, model.SampleType); editableRoot.SetSampleFalseLabel(field.SystemName, model.FalseLabel); editableRoot.SetSampleTrueLabel(field.SystemName, model.TrueLabel); } }