Ejemplo n.º 1
0
        /// <summary>
        /// Handler called every time a block state is created in the controller.
        /// </summary>
        /// <param name="blockState">The block state created.</param>
        public virtual void OnBlockStateCreated(IReadOnlyBlockState blockState)
        {
            Debug.Assert(blockState != null);
            Debug.Assert(!BlockStateViewTable.ContainsKey(blockState));

            IReadOnlyBlockStateView BlockStateView = CreateBlockStateView(blockState);

            Debug.Assert(BlockStateView.ToString() != null); // For code coverage.
            BlockStateViewTable.Add(blockState, BlockStateView);
        }
Ejemplo n.º 2
0
        bool IDictionary <IReadOnlyBlockState, IReadOnlyBlockStateView> .TryGetValue(IReadOnlyBlockState key, out IReadOnlyBlockStateView value)
        {
            bool Result = TryGetValue((IFrameBlockState)key, out IFrameBlockStateView Value);

            value = Value;
            return(Result);
        }
Ejemplo n.º 3
0
 void IDictionary <IReadOnlyBlockState, IReadOnlyBlockStateView> .Add(IReadOnlyBlockState key, IReadOnlyBlockStateView value)
 {
     Add((IFrameBlockState)key, (IFrameBlockStateView)value);
 }