绘图更新

This commit is contained in:
Sunny 2020-05-18 23:25:19 +08:00
parent 5f92d504b0
commit aeb64938d1
6 changed files with 13 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -146,6 +146,18 @@ namespace Sunny.UI
}
}
protected override void OnRowsAdded(DataGridViewRowsAddedEventArgs e)
{
base.OnRowsAdded(e);
SetScrollInfo();
}
protected override void OnRowsRemoved(DataGridViewRowsRemovedEventArgs e)
{
base.OnRowsRemoved(e);
SetScrollInfo();
}
protected override void OnSizeChanged(EventArgs e)
{
base.OnSizeChanged(e);
@ -355,12 +367,6 @@ namespace Sunny.UI
}
}
protected override void OnAllowUserToAddRowsChanged(EventArgs e)
{
base.OnAllowUserToAddRowsChanged(e);
SetScrollInfo();
}
protected override void OnGridColorChanged(EventArgs e)
{
base.OnGridColorChanged(e);

View File

@ -125,6 +125,7 @@ namespace Sunny.UI
}
string text = char.ConvertFromUtf32(symbol);
graphics.TextRenderingHint = TextRenderingHint.AntiAlias;
graphics.DrawString(text, font, color, left + xOffset, top + yOffSet);
}