本文整理汇总了C#中System.Windows.Forms.InvalidateEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# InvalidateEventArgs类的具体用法?C# InvalidateEventArgs怎么用?C# InvalidateEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InvalidateEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了InvalidateEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Impact_Invalidated
void Impact_Invalidated(object sender, InvalidateEventArgs e)
{
syncContext.Send(new SendOrPostCallback(delegate(object o)
{
UpdateAuthorInfo(Impact.GetSelectedAuthor());
}), this);
}
示例2: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
base.OnInvalidated(e);
if (_Cell != null && _SuspendUpdate == false)
_Cell.InvalidateRender();
}
示例3: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
base.OnInvalidated(e);
if (c_Overview != null)
c_Overview.Invalidate();
}
示例4: Form1_Invalidated
void Form1_Invalidated(object sender, InvalidateEventArgs e)
{
foreach (Control item in tableLayoutPanel1.Controls)
{
if (item is CountdownStage)
((CountdownStage)item).refresh();
}
}
示例5: InvalidateWalls
void InvalidateWalls(object sender, InvalidateEventArgs e)
{
var tab = sender as TabControl;
if (tab == null) return;
var page = tab.SelectedTab;
var pictureBox = page.Controls["wallset"] as PictureBox;
pictureBox.Width = (int)(ContainerWidth * Zoom);
pictureBox.Height = (int)(maxWallSetHeight * Zoom);
}
示例6: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
// Set the font and colour
Font = MaterialTypography.GetFont(Style);
if (ForeColor == SystemColors.ControlText)
ForeColor = MaterialTheme.CurrentTheme.Text;
base.OnInvalidated(e);
}
示例7: TransparentCommandBarControl_Invalidated
private void TransparentCommandBarControl_Invalidated(object sender, InvalidateEventArgs e)
{
Point absLoc = _parent.PointToScreen(e.InvalidRect.Location);
Point relLoc = PointToClient(absLoc);
Rectangle relRect = new Rectangle(relLoc, e.InvalidRect.Size);
if (ClientRectangle.IntersectsWith(relRect))
{
relRect.Intersect(ClientRectangle);
Invalidate(relRect);
}
}
示例8: PiecesGraph_Invalidated
private void PiecesGraph_Invalidated(object sender, InvalidateEventArgs e)
{
if (valid) return;
using (Graphics g = Graphics.FromImage(bmp))
{
g.Clear(BackColor);
int c_bit = 0, num_bits, bits_got;
float bitsperrow = (bmp.Width > 0 ? len / (float)bmp.Width : 0), chunk_done;
if (bitsperrow > 0)
{
for (int n = 0; n < bmp.Width; n++)
{
num_bits = (int)(bitsperrow * (n + 1)) - c_bit;
bits_got = 0;
for (int i = 0; i < num_bits; i++)
{
if (BitGet(bits, len, c_bit + i))
bits_got++;
}
if (num_bits > 0)
chunk_done = bits_got / (float)num_bits;
else if (BitGet(bits, len, c_bit))
chunk_done = 1;
else
chunk_done = 0;
Color fill = Color.FromArgb((int)(BackColor.R * (1 - chunk_done) + (ForeColor.R) * chunk_done),
(int)(BackColor.G * (1 - chunk_done) + (ForeColor.G) * chunk_done),
(int)(BackColor.B * (1 - chunk_done) + (ForeColor.B) * chunk_done));
g.DrawLine(new Pen(fill), n, 0, n, bmp.Height);
c_bit += num_bits;
}
}
}
valid = true;
}
示例9: OnInvalidated
/// <summary>
/// Performs custom actions and raises the <see cref="E:System.Windows.Forms.Control.Invalidated"></see> event</summary>
/// <param name="e">An <see cref="T:System.EventArgs"></see> that contains the event data</param>
protected override void OnInvalidated(InvalidateEventArgs e)
{
m_columnHeaders.Invalidate();
base.OnInvalidated(e);
}
示例10: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
SetPanelArrowPosition();
panelArrowBtn.Invalidate();
base.OnInvalidated(e);
}
示例11: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
base.OnInvalidated(e);
}
示例12: OnInvalidated
/// <summary>
/// Invalidete menuitem and overflowpanel button
/// </summary>
/// <param name="e"></param>
protected override void OnInvalidated(InvalidateEventArgs e)
{
overFlowPanelButton.Invalidate();
contextMenuItem.Invalidate();
base.OnInvalidated(e);
}
示例13: ListView_Invalidated
private void ListView_Invalidated (object sender, InvalidateEventArgs e)
{
// When the ListView is invalidated, we need to invalidate
// the child controls.
header_control.Invalidate ();
item_control.Invalidate ();
}
示例14: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
captionBand.Invalidate();
base.OnInvalidated(e);
}
示例15: Impact_Invalidated
void Impact_Invalidated(object sender, InvalidateEventArgs e)
{
syncContext.Send(o => UpdateAuthorInfo(Impact.GetSelectedAuthor()), this);
}