示例#1
0
 //-------------------------------------------------
 protected override void OnResize(EventArgs e)
 {
     base.OnResize(e);
     if (UseParm == false)
     {
         m_GridSize.SetSize(this.Size, m_CellData);
     }
     this.Invalidate();
 }
示例#2
0
 //-------------------------------------------------
 private void ChkMinMax()
 {
     this.MinimumSize = new Size(m_GridSize.CellWidth * 6, m_GridSize.CellHeight * 6);
     this.MaximumSize = new Size(m_GridSize.CellWidth * m_CellData.LayerCount, m_GridSize.CellHeight * m_CellData.FrameCount);
     m_GridSize.SetSize(this.Size, m_CellData);
 }