Forge/Editor/DataWindow.cs
/// <summary>
/// Returns the data header that should be shown above the data type.
/// </summary>
Returns the data header that should be shown above the data type.
Returns the data header that should be shown above the data type .
private static string GetDataHeader(Type dataType, IQueryableEntity queryableEntity,
            DataEditState editState) {
            StringBuilder result = new StringBuilder();
            result.Append(dataType.Name);
            if (queryableEntity is IEntity) {
                result.Append(editState == DataEditState.Current ? " (current)" : " (previous)");
                IEntity entity = (IEntity)queryableEntity;
                DataAccessor accessor = new DataAccessor(dataType);
                if (entity.WasAdded(accessor)) {
                    result.Append(" (added)");
                }
                if (entity.WasModified(accessor)) {
                    result.Append(" (modified)");
                }
                if (entity.WasRemoved(accessor)) {
                    result.Append(" (removed)");
                }
            }
            return result.ToString();
        }
private static string GetDataHeader ( Type dataType , IQueryableEntity queryableEntity , DataEditState editState ) { StringBuilder result = new StringBuilder ( ) ; result . Append ( dataType . Name ) ; if ( queryableEntity is IEntity ) { result . Append ( editState == DataEditState . Current ? " " : " " ) ; IEntity entity = ( IEntity ) queryableEntity ; DataAccessor accessor = new DataAccessor ( dataType ) ; if ( entity . WasAdded ( accessor ) ) { result . Append ( " " ) ; } if ( entity . WasModified ( accessor ) ) { result . Append ( " " ) ; } if ( entity . WasRemoved ( accessor ) ) { result . Append ( " " ) ; } } return result . ToString ( ) ; }
Returns the data header that should be shown above the data type.
Returns the data header that should be shown above the data type .
dataType
Type
queryableEntity
IQueryableEntity
editState
DataEditState