private void BindList() { if (EntityId == Guid.Empty) { entity = new Entity(); } else { entity = metadataServiceClient.GetMetaEntityById(EntityId); } if (WorkingMode == EntityDetailWorkingMode.Edit) { View.SetControlState(Guid.Empty); } else { View.SetControlState(EntityId); } View.Bind(new List <Entity>(new[] { entity })); }