public void OnQueryComplete(int token, Java.Lang.Object cookie, ICursor cursor)
        {
            if (Activity == null)
            {
                return;
            }

            Day day = (Day)cookie;

            // Clear out any existing sessions before inserting again
            day.BlocksView.RemoveAllBlocks();

            try {
                while (cursor.MoveToNext())
                {
                    string type = cursor.GetString(BlocksQuery.BLOCK_TYPE);

                    // TODO: place random blocks at bottom of entire layout
                    int column;
                    try {
                        column = TypeColumnMap[type];
                    } catch {
                        continue;
                    }

                    string blockId         = cursor.GetString(BlocksQuery.BLOCK_ID);
                    string title           = cursor.GetString(BlocksQuery.BLOCK_TITLE);
                    long   start           = cursor.GetLong(BlocksQuery.BLOCK_START);
                    long   end             = cursor.GetLong(BlocksQuery.BLOCK_END);
                    bool   containsStarred = cursor.GetInt(BlocksQuery.CONTAINS_STARRED) != 0;

                    BlockView blockView = new BlockView(Activity, blockId, title, start, end, containsStarred, column);

                    int sessionsCount = cursor.GetInt(BlocksQuery.SESSIONS_COUNT);

                    if (sessionsCount > 0)
                    {
                        blockView.Click += HandleClick;
                    }
                    else
                    {
                        blockView.Focusable = false;
                        blockView.Enabled   = false;
                        LayerDrawable buttonDrawable = (LayerDrawable)blockView.Background;
                        buttonDrawable.GetDrawable(0).SetAlpha(DISABLED_BLOCK_ALPHA);
                        buttonDrawable.GetDrawable(2).SetAlpha(DISABLED_BLOCK_ALPHA);
                    }

                    day.BlocksView.AddView(blockView);
                }
            } finally {
                cursor.Close();
            }
        }
예제 #2
0
 internal sealed override void PerformSetup(BlockView blockView)
 {
     for (int i = 0; i < _childBindings.Count; i++)
     {
         var childBinding = _childBindings[i];
         if (childBinding.GetSettingUpElement() != null)
         {
             childBinding.Setup(blockView);
         }
     }
 }
예제 #3
0
 /// <summary>
 /// Returns an enumerator that lists all of the <see cref="RowPresenter"/> in this block.
 /// </summary>
 /// <returns>An enumerator that lists all of the <see cref="RowPresenter"/> in this block.</returns>
 public IEnumerator <RowPresenter> GetEnumerator()
 {
     if (BlockView != null)
     {
         return(BlockView.GetEnumerator());
     }
     else
     {
         return(EmptyEnumerator <RowPresenter> .Singleton);
     }
 }
예제 #4
0
        internal RowView Setup(BlockView blockView, RowPresenter row)
        {
            Debug.Assert(blockView != null);
            Debug.Assert(row != null && row.View == null);

            var rowView = Create(Template.CreateRowView);

            rowView.SetBlockView(blockView);
            rowView.Setup(row);
            return(rowView);
        }
예제 #5
0
 internal static void SetBlockView(this UIElement element, BlockView value)
 {
     if (value == null)
     {
         element.ClearValue(BlockViewProperty);
     }
     else
     {
         element.SetValue(BlockViewProperty, value);
     }
 }
예제 #6
0
 internal Size Measure(BlockView blockView, Size constraintSize)
 {
     Debug.Assert(IsMeasuring);
     if (IsPreparingMeasure)
     {
         PrepareMeasure(blockView);
     }
     else
     {
         FinalizeMeasure(blockView);
     }
     return(constraintSize);
 }
예제 #7
0
        private void PrepareMeasure(BlockView blockView)
        {
            Debug.Assert(IsPreparingMeasure);

            PrepareMeasure(blockView, BlockBindings.PreAutoSizeBindings);

            for (int i = 0; i < blockView.Count; i++)
            {
                blockView[i].View.Measure(Size.Empty);
            }

            PrepareMeasure(blockView, BlockBindings.PostAutoSizeBindings);
        }
예제 #8
0
        } //END AddXRTargetToLatestBlockView

        //-------------------------------------------------------//
        private static void SetBlockViewToXRTarget( BlockView view )
        //-------------------------------------------------------//
        {

            if( view != null )
            {
                if( view != null && view.IsViewType3D() )
                {
                    view.blockGroupType3D = BlockGroup.BlockGroupType3D.XRTarget;
                }
            }

        } //END SetBlockViewToXRTarget
예제 #9
0
        public List<BlockView> AddBlockView()
        {
            List<BlockView> newViews = new List<BlockView>();

            //Count how many BlockViews there currently are, add one to that. This will be used as part of the name for the new BlockViews to keep it clear that they are siblings
            int newBlockViewNumber = 0;
            List<BlockView> blockViews = GameObject.FindObjectsOfType<BlockView>().ToList();

            if( blockViews != null && blockViews.Count > 0 )
            {
                foreach( BlockView view in blockViews )
                {
                    if( view != null && view.viewType == BlockView.ViewType.TwoDimensional )
                    {
                        newBlockViewNumber++;
                    }
                }
            }

            //Add a 2D BlockView and attach it to our 2D Canvas Group child GameObject
            GameObject reference = (GameObject)AssetDatabase.LoadAssetAtPath( "Assets/BrandXR/Prefabs/BlockSystem/BlockViews/bxr_" + blockViewType + ".prefab", typeof( GameObject ) );
            BlockView view2D = Instantiate( reference ).GetComponent<BlockView>();

            view2D.name = "bxr_" + blockViewType + " 2D (" + ( newBlockViewNumber + 1 ) + ")";
            view2D.transform.parent = Group2DParent.transform;
            view2D.transform.localPosition = Vector3.zero;

            newViews.Add( view2D );

            //Add a 3D BlockView and attach it to our 3D Canvas Group child GameObject
            BlockView view3D = Instantiate( reference ).GetComponent<BlockView>();

            view3D.name = "bxr_" + blockViewType + " 3D (" + ( newBlockViewNumber + 1 ) + ")";
            view3D.transform.parent = Group3DParent.transform;
            view3D.transform.localPosition = Vector3.zero;

            newViews.Add( view3D );

            //Link the two related BlockViews together
            view2D.linkedBlockView = view3D;
            view3D.linkedBlockView = view2D;

            //Link the two BlockViews to this BlockManager
            view2D.viewType = BlockView.ViewType.TwoDimensional;
            view3D.viewType = BlockView.ViewType.ThreeDimensional;

            AddBlockViewToManager( view2D, BlockView.ViewType.TwoDimensional );
            AddBlockViewToManager( view3D, BlockView.ViewType.ThreeDimensional );

            return newViews;
        }
예제 #10
0
        } //END AddBlocksToList

        //---------------------------------//
        private void FindExistingBlockViewParent()
        //---------------------------------//
        {

            //Search for the BlockView in this BlockGroups parents 
            //Will go all the way up the hierarchy or set the blockView to null if there is none
            if( transform.parent != null && 
                transform.GetComponentInParent<BlockView>() != null )
            {
                blockView = transform.GetComponentInParent<BlockView>();
            }
            
            
        } //END FindExistingBlockViewParent
예제 #11
0
 public BlockGameController(BlockPoolView blockPool, IDictionary <Side, Sprite> sideSprites, BlockSpritesViewDescription spritesViewDescription, BlockView previewBlock)
 {
     _blockPool                           = blockPool;
     _sideSprites                         = sideSprites;
     _spritesViewDescription              = spritesViewDescription;
     _previewBlock                        = previewBlock;
     _blocksGenerator                     = new BlocksGenerator(_blockPool, _spritesViewDescription);
     _blocksGenerator.ChangeBlockPrewiew += _blocksGenerator_ChangeBlockPrewiew;
     _blocks                  = new BlockController[_weightGamePole, _heightGamePole];
     _blockGameGenerator      = new BlockGameGenerator(_blocks, _borderGamePole, _weightGamePole, _heightGamePole, _blocksGenerator, _spritesViewDescription, _sideSprites);
     _blockGamePoleController = new BlockGamePoleController(_blocks, _weightGamePole, _heightGamePole, _borderGamePole, _blockGameGenerator);
     _destroyBlock            = new DestroyBlock(_blocksGenerator, _blocks, _blockGameGenerator, _blockPool);
     _blockStateController    = new BlockStateController(_blockGameGenerator, _blockGamePoleController, _destroyBlock);
 }
 void Update()
 {
     // If the primary mouse button was pressed this frame
     if (Input.GetMouseButtonDown(0))
     {
         // If the mouse hit a block
         RaycastHit2D hit = Physics2D.Raycast(Camera.main.ScreenToWorldPoint(Input.mousePosition), Vector2.zero);
         if (hit.collider != null && hit.collider.gameObject.GetComponent <BlockView>())
         {
             // Dispatch the block's "on clicked" event
             BlockView blockView = hit.collider.gameObject.GetComponent <BlockView>();
             blockView.DispatchClick();
         }
     }
 }
예제 #13
0
        } //END UnsuscribeToEvents
        

        //--------------------------------------------//
        public void RemoveBlockView( BlockView blockViewToDelete )
        //--------------------------------------------//
        {

            if( blockViewToDelete != null )
            {
                blockViewToDelete.PrepareForDestroy();

                if( blockViewToDelete.linkedBlockView != null )
                {
                    blockViewToDelete.linkedBlockView.PrepareForDestroy();
                }

                if( blockViews != null && blockViews.Count > 0 )
                {
                    if( blockViews.Contains( blockViewToDelete ) )
                    {
                        blockViews.Remove( blockViewToDelete );
                    }

                    if( blockViews.Contains( blockViewToDelete.linkedBlockView ) )
                    {
                        blockViews.Remove( blockViewToDelete.linkedBlockView );
                    }
                }

#if UNITY_EDITOR
                //Wait a moment before calling DestroyImmediate to make sure no logic is running
                UnityEditor.EditorApplication.delayCall += () =>
                {
                    if( blockViewToDelete.linkedBlockView != null )
                    {
                        DestroyImmediate( blockViewToDelete.linkedBlockView.gameObject );
                    }

                    DestroyImmediate( blockViewToDelete.gameObject );
                };
#else
                if( blockViewToDelete.linkedBlockView != null )
                {
                    Destroy( blockViewToDelete.linkedBlockView.gameObject );
                }
                
                Destroy( blockViewToDelete.gameObject );
#endif
            }

        } //END RemoveBlockView
예제 #14
0
    public IBlockView Spawn(Transform parent, ISetting setting, int number, Coord location)
    {
        Transform blockTransform  = Instantiate(blockPrefab, Vector3.zero, Quaternion.identity) as Transform;
        Transform numberTransform = Instantiate(numberPrefabs[number], new Vector3(0, 0, -1), Quaternion.identity) as Transform;

        numberTransform.SetParent(blockTransform);
        blockTransform.SetParent(parent);
        blockTransform.localScale = new Vector3(1f, 1f, 1f);

        BlockView blockView = blockTransform.GetComponent <BlockView>();

        blockView.Setting = setting;
        blockView.Color   = setting.BlockColorRepository.GetColorForTheNumber(number);

        return(blockView);
    }
예제 #15
0
        } //END IsGazeFocusing

        //-------------------------------------------------------------------------------------//
        /// <summary>
        /// Check if the gaze system is currently focusing on an unselected block within this BlockView
        /// </summary>
        /// <param name="isGazeFocusingOnThis">The BlockView to check if there is a block that is being gazed at</param>
        /// <param name="checkLinkedBlockView">Should we also check the linked block view if they have a block that is being gaze focused on and is not selected?</param>
        /// <param name="checkNestedGroupsWithinViews">Should we also check all of the nested BlockGroups contained within if they have a block that is being gazed focused on and is not selected?</param>
        /// <returns></returns>
        public bool IsGazeFocusing( BlockView isGazeFocusingOnThis, bool checkLinkedBlockView, bool checkNestedGroupsWithinViews )
        //-------------------------------------------------------------------------------------//
        {
            if( gazeFocusingOnBlock != null )
            {
                foreach( Block block in isGazeFocusingOnThis.GetBlocks( null, checkLinkedBlockView, checkNestedGroupsWithinViews ) )
                {
                    if( block != null && block == gazeFocusingOnBlock )
                    {
                        return true;
                    }
                }
            }

            return false;

        } //END IsGazeFocusing
예제 #16
0
        } //END DestroyExistingBlockViews
        

        //--------------------------------------------//
        public void AddBlockViewToManager( BlockView blockView, BlockView.ViewType viewType )
        //--------------------------------------------//
        {

            if( blockViews != null && blockViews.Count > 0 )
            {
                blockViews.Add( blockView );
            }
            else
            {
                blockViews = new List<BlockView>();
                blockViews.Add( blockView );
            }

            SetBlockViewToParent( blockView, viewType );
            
        } //END AddBlockViewToManager
예제 #17
0
        } //END AddBlockViewToManager

        //--------------------------------------------//
        public void SetBlockViewToParent( BlockView blockView, BlockView.ViewType viewType )
        //--------------------------------------------//
        {

            if( blockView != null )
            {
                if( viewType == BlockView.ViewType.ThreeDimensional )
                {
                    blockView.transform.SetParent( Group3DParent.transform );
                }
                else if( viewType == BlockView.ViewType.TwoDimensional )
                {
                    blockView.transform.SetParent( Group2DParent.transform );
                }
            }

        } //END SetBlockViewToParent
예제 #18
0
        } //END AddBlockGroupToLatestBlockView

        //-------------------------------------------------------//
        private static void SetBlockViewToBlockGroup( BlockView view )
        //-------------------------------------------------------//
        {

            if( view != null )
            {
                if( view.IsViewType2D() )
                {
                    view.blockGroupType2D = BlockGroup.BlockGroupType2D.BlockGroup;
                }
                else if( view.IsViewType3D() )
                {
                    view.blockGroupType3D = BlockGroup.BlockGroupType3D.BlockGroup;
                }
            }

        } //END SetBlockViewToBlockGroup
예제 #19
0
    Transform Add(BlockModel model)
    {
        Transform instance = Instantiate(piecePrefab);
        BlockView block    = instance.gameObject.GetComponent <BlockView>();

        block.dir1 = model.dir1;
        block.dir2 = model.dir2;
        float        ro  = HexMetrics.outerRadius;
        float        ri  = HexMetrics.innerRadius;
        PosAndObject pno = new PosAndObject();

        pno.pos   = instance.localPosition = new Vector3(2f * ri * (((float)model.x) + (model.z % 2 == 0?0.0f:0.5f)), 0.0f, 1.5f * ro * (float)model.z);
        pno.obj   = instance;
        pno.model = model;
        instance.SetParent(transform);
        elem.Add(pno);
        return(pno.obj);
    }
예제 #20
0
        internal void ArrangeChildren(BlockView blockView)
        {
            foreach (var blockBinding in BlockBindings)
            {
                var element = blockView[blockBinding];
                var rect    = GetRect(blockView, blockBinding);
                var clip    = GetFrozenClip(blockView, blockBinding);
                Arrange(element, blockBinding, rect, clip);
            }

            for (int i = 0; i < blockView.Count; i++)
            {
                var row  = blockView[i];
                var rect = GetRect(blockView, i);
                var clip = GetFrozenClip(i);
                row.View.Arrange(rect);
            }
        }
예제 #21
0
    private IEnumerator StartAnimationCoroutine()
    {
        BlockView.Open();
        foreach (var value in _curOpenIdDic)
        {
            int index = functionOpenList.IndexOf((FunctionOpenType)value.Key);

            Debugger.Log("[StartAnimation]insert index:{0}", index);
            Translate(index);

            yield return(new WaitForSeconds(moveTime));

            transformList[index].gameObject.SetActive(true);
            yield return(new WaitForSeconds(stayTime));
        }
        BlockView.Close();
        _isExecute = false;
    }
예제 #22
0
        public static void BlockView(FormWindowState windowState = FormWindowState.Normal)
        {
            Cursor.Current = Cursors.WaitCursor;

            if (Application.OpenForms["BlockView"] == null)
            {
                BlockView action = new BlockView();
                action.Show();
                // action.Hide();
            }
            else
            {
                {
                    Application.OpenForms["BlockView"].Activate();
                    Application.OpenForms["BlockView"].WindowState = windowState;
                    Application.OpenForms["BlockView"].Show();
                }
            }
        }
예제 #23
0
    public void SetBoardModel(BoardModel v)
    {
        if (board != null)
        {
            throw new Exception("board model has already been set");
        }
        if (current == null)
        {
            current = transform.Find("Current").gameObject.GetComponent <Piece>();
            if (current == null)
            {
                throw new Exception("Impossible to found the current pieces object");
            }
        }
        board = v;

        board.removeBlock += (o, ev) => {
            if (ev.Blocks.Count == 0)
            {
                return;
            }
            foreach (BlockModel block in ev.Blocks)
            {
                BlockView view = transforms.Remove(block.x, block.z).gameObject.GetComponent <BlockView>();
                view.Explode();
                Pause = view.ExplosionDuration;
            }
        };

        board.gameOver += (o, ev) => {
            gameOver = true;
            Playing  = false;
        };

        board.newPiece += (o, ev) => { current.New(ev.Blocks); };

        board.loopCompleted += (o, ev) => { audioLoop.Play(); };
        board.updateLife    += (o, ev) => {
            musicInGame.Play();
            audioLife.Play();
        };
    }
예제 #24
0
        public override void OnBindViewHolder(RecyclerView.ViewHolder h, int position)
        {
            ViewHolder holder = (RecyclerAdapter.ViewHolder)h;

            BlockView bv = FilteredBvs[position];

            holder.RecyclerBv.SetRealBv(bv);
            holder.TvBlockName.SetText(bv.GetBlockName(), TextView.BufferType.Normal);

            if (bv is InstructionBlockView ibv)
            {
                holder.SetDrawable(ibv.Drawable);
            }
            else
            {
                holder.SetDrawable(null);
            }

            holder.RecyclerBv.SetOnTouchListener(Ma);
        }
예제 #25
0
    private void OnMouseUpHandler(GameObject shape)
    {
        if (GameFieldModel.GameOver)
        {
            return;
        }

        BlockView.Move = false;
        BlockView.StartCoroutine(BlockView.SetCorrectShapePos(delegate()
        {
            int blocksCanLandedCount = 0;
            var blockViews           = shape.GetComponentsInChildren <BlockView>();
            foreach (var bv in blockViews)
            {
                if (bv.CanLanded)
                {
                    blocksCanLandedCount++;
                }
            }

            if (blocksCanLandedCount == blockViews.Length)
            {
                for (var i = 0; i < shape.transform.childCount; i++)
                {
                    shape.transform.GetChild(i).tag = ShapeState.Landed.ToString();
                    var sr = shape.transform.GetChild(i).GetComponent <SpriteRenderer>();
                    if (sr)
                    {
                        sr.sortingOrder = 1;
                    }
                }
                dispatcher.AddListener(GameFieldEvent.LANDING_FAILED, OnLandingFailed);
                dispatcher.Dispatch(GameFieldEvent.TRY_LANDED_SHAPE, shape);
            }
            else
            {
                FailLanding(shape);
            }
        }));
    }
예제 #26
0
        } //END SetBlockViewToBlockGroup

        //-------------------------------------------------------//
        private static BlockGroup AddXRTargetToLatestBlockView()
        //-------------------------------------------------------//
        {
            AddBlockManagerIfNull();

            if( GameObject.FindObjectOfType<BlockManager>() != null )
            {
                BlockManager blockManager = GameObject.FindObjectOfType<BlockManager>();

                if( blockManager.blockViews != null && blockManager.blockViews.Count > 0 )
                {
                    BlockView view = blockManager.blockViews[ blockManager.blockViews.Count - 1 ];

                    SetBlockViewToXRTarget( view );

                    return view.AddBlockGroup();
                }
            }

            return null;

        } //END AddXRTargetToLatestBlockView
예제 #27
0
    private void BuildBoard(int _iLengthX, int _iLengthY) //單純的把棋盤建出來,裡頭都先不要設定數字或障礙
    {
        m_game = new GamingLogic2048(_iLengthX, _iLengthY, 0);
        int iBoardSize = m_game.GetBoardSize();

        for (int i = 0; i < iBoardSize; i++) //為實現資源管理,迴圈需要兩個條件,一個是生成格子時是否生足夠了,另一個則是去找原本的格子是否太多了,需要關閉
        {
            if (i >= m_listBlockView.Count)  //超出了現有生成的格子範圍,表示需要額外生成
            {
                Vector3 initPlace = Vector3.zero;
                initPlace.x += m_vec2BlockInterval.x * (i % _iLengthX);
                initPlace.y -= m_vec2BlockInterval.y * (i / _iLengthX);
                GameObject blockTemp = m_objPoolBlockPrefab.GetBlockPrefab();
                blockTemp.transform.SetParent(m_transformInitPosition.transform);
                blockTemp.transform.localPosition = initPlace;
                BlockView BVTemp = blockTemp.GetComponent <BlockView>();
                m_listBlockView.Add(BVTemp);
            }
            else if (i < iBoardSize && i < m_listBlockView.Count) //還需要格子,但原本所生成的格子還夠用時,將舊有的格子移動到我們需要的地方
            {
                Vector3 initPlace = Vector3.zero;
                initPlace.x += m_vec2BlockInterval.x * (i % _iLengthX);
                initPlace.y -= m_vec2BlockInterval.y * (i / _iLengthX);
                m_listBlockView[i].transform.localPosition = initPlace;
                m_listBlockView[i].transform.gameObject.SetActive(true);
            }
        }
        //以下,在每次做完排格子迴圈後,將多出來的格子關閉,在C#當中若要將某個範圍的list刪除的話可以先請另一個暫存的list先幫你抓著,接著再請該list一一將物件轉入物件池
        List <BlockView> listToRemove = m_listBlockView.GetRange(iBoardSize, m_listBlockView.Count - iBoardSize);

        m_listBlockView.RemoveRange(iBoardSize, m_listBlockView.Count - iBoardSize);
        foreach (BlockView blockView in listToRemove)
        {
            m_objPoolBlockPrefab.BackToBlockPool(blockView.gameObject);
        }

        this.m_gameObjGameOverView.SetActive(false);
    }
예제 #28
0
        } //END IsFocused

        //------------------------------//
        /// <summary>
        /// Check to see if a BlockView has a Block that has been selected
        /// </summary>
        /// <param name="blockView">The BlockView to check if there has been a Block that has been selected</param>
        /// <param name="checkLinkedBlockView">Should we check the linkedBlockView to see if it has a block that has been selected</param>
        /// <returns></returns>
        public bool IsFocused( BlockView blockView, bool checkLinkedBlockView = true )
        //------------------------------//
        {
            //Make sure the blockView passed in and the stored BlockView are not null
            if( blockView != null && this.blockView != null )
            {
                //First check the blockView passed in
                if( this.blockView == blockView )
                {
                    return true;
                }

                //Next check the linked block view
                else if( checkLinkedBlockView && blockView.linkedBlockView == this.blockView )
                {
                    return true;
                }

            }

            return false;

        } //END IsFocused
예제 #29
0
 protected override Point GetPosition(BlockView blockView, int flowIndex)
 {
     Debug.Assert(flowIndex == 0);
     return(Template.ContainerRange.GetRelativePosition(Template.RowRange));
 }
		public void OnQueryComplete (int token, Java.Lang.Object cookie, ICursor cursor)
		{
			if (Activity == null) {
	            return;
	        }
			
			Day day = (Day) cookie;
			
			// Clear out any existing sessions before inserting again
	        day.BlocksView.RemoveAllBlocks();
			
			try {
	            while (cursor.MoveToNext()) {
	                string type = cursor.GetString(BlocksQuery.BLOCK_TYPE);
	                
					// TODO: place random blocks at bottom of entire layout
					int column;
					try {
						column = TypeColumnMap[type];
					} catch {
						continue;
					}
	                
	                string blockId = cursor.GetString(BlocksQuery.BLOCK_ID);
	                string title = cursor.GetString(BlocksQuery.BLOCK_TITLE);
	                long start = cursor.GetLong(BlocksQuery.BLOCK_START);
	                long end = cursor.GetLong(BlocksQuery.BLOCK_END);
	                bool containsStarred = cursor.GetInt(BlocksQuery.CONTAINS_STARRED) != 0;
	
	                BlockView blockView = new BlockView(Activity, blockId, title, start, end, containsStarred, column);
	
	                int sessionsCount = cursor.GetInt(BlocksQuery.SESSIONS_COUNT);
					
	                if (sessionsCount > 0) {
	                    blockView.Click += HandleClick;
	                } else {
	                    blockView.Focusable = false;
	                    blockView.Enabled = false;
	                    LayerDrawable buttonDrawable = (LayerDrawable) blockView.Background;
	                    buttonDrawable.GetDrawable(0).SetAlpha(DISABLED_BLOCK_ALPHA);
	                    buttonDrawable.GetDrawable(2).SetAlpha(DISABLED_BLOCK_ALPHA);
	                }
	
	                day.BlocksView.AddView(blockView);
	            }
	        } finally {
	            cursor.Close();
	        }

		}
예제 #31
0
 protected override Size GetSize(BlockView blockView, int flowIndex)
 {
     return(Template.RowRange.MeasuredSize);
 }