Change Manager

This commit is contained in:
Rich
2011-08-01 20:20:39 +00:00
parent 1d910db31a
commit 792351c922
14 changed files with 2329 additions and 42 deletions

View File

@@ -976,10 +976,11 @@ namespace Volian.Controls.Library
int x2 = bounds.Right - 1;
int y2 = bounds.Bottom - 1;
GridItem myGridItem = Parent as GridItem;
if (myGridItem == null) return;
Panel myPanel = Parent as Panel;
if (myGridItem == null && myPanel == null) return;
if (row == 0 || col == 0) // Top or Left Edge - Draw on parent
{
using (Graphics grParent = myGridItem.CreateGraphics())
using (Graphics grParent = myGridItem != null ? myGridItem.CreateGraphics() : myPanel.CreateGraphics())
{
if (row == 0)
{