partial void OnLoaded() { if(this.ID == Grid) { Value = FieldPlaceHolderEnum.Grid; } else if(this.ID == GridCard) { Value = FieldPlaceHolderEnum.GridCard; } }
public static Guid GetFieldPlaceHolderID(FieldPlaceHolderEnum value) { switch (value) { case FieldPlaceHolderEnum.GridCard: return GridCard; case FieldPlaceHolderEnum.Grid: return Grid; } return Guid.Empty; }