Ejemplo n.º 1
0
        private void Bc_TriedToLinkOut(object sender, EventArgs e)
        {
            if (_isLinking)
            {
                _isLinking = false;
                return;
            }

            _isLinking = true;
            _linking   = sender as BlockControl;
            _linkIndex = (e as LinkOutEventArgs).Index;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 바깥쪽의 블럭컨트롤에서 SizeChanged이벤트를 받아서 꼭 전체 사이즈 변경을 구현해야한다.
 /// </summary>
 /// <param name="block"></param>
 public void SetBlock(BlockControl block)
 {
     Block = block;
     if (MinSize.Width < block.Block.Size.Width || MinSize.Height < block.Block.Size.Height)
     {
         this.Size = block.Block.Size;
     }
     else
     {
         this.Size = MinSize;
     }
 }