Forge/Editor/DataWindow.cs
/// <summary>
/// Returns the current editing state for the given data type in the given entity.
/// </summary>
Returns the current editing state for the given data type in the given entity.
Returns the current editing state for the given data type in the given entity .
private DataEditState GetEditState(IQueryableEntity entity, Type dataType) {
            if (CanEditPrevious(entity, dataType)) {
                HashSet<int> value;
                if (_previous.TryGetValue(((IEntity)entity).UniqueId, out value)) {
                    int id = new DataAccessor(dataType).Id;
                    return value.Contains(id) ? DataEditState.Previous : DataEditState.Current;
                }
            }
            return DataEditState.Current;
        }
private DataEditState GetEditState ( IQueryableEntity entity , Type dataType ) { if ( CanEditPrevious ( entity , dataType ) ) { HashSet < int > value ; if ( _previous . TryGetValue ( ( ( IEntity ) entity ) . UniqueId , out value ) ) { int id = new DataAccessor ( dataType ) . Id ; return value . Contains ( id ) ? DataEditState . Previous : DataEditState . Current ; } } return DataEditState . Current ; }
Returns the current editing state for the given data type in the given entity.
Returns the current editing state for the given data type in the given entity .
// ITemplate / Data.NonVersioned don't support previous
entity
IQueryableEntity
dataType
Type