本文整理汇总了C#中System.Windows.Forms.InvalidateEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# InvalidateEventArgs类的具体用法?C# InvalidateEventArgs怎么用?C# InvalidateEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InvalidateEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了InvalidateEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Impact_Invalidated
void Impact_Invalidated(object sender, InvalidateEventArgs e)
{
syncContext.Send(new SendOrPostCallback(delegate(object o)
{
UpdateAuthorInfo(Impact.GetSelectedAuthor());
}), this);
}
开发者ID:RodH257,项目名称:gitextensions,代码行数:7,代码来源:FormImpact.cs
示例2: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
base.OnInvalidated(e);
if (_Cell != null && _SuspendUpdate == false)
_Cell.InvalidateRender();
}
开发者ID:huamanhtuyen,项目名称:VNACCS,代码行数:7,代码来源:GridLabelXEditControl.cs
示例3: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
base.OnInvalidated(e);
if (c_Overview != null)
c_Overview.Invalidate();
}
开发者ID:paladin74,项目名称:Dapple,代码行数:7,代码来源:Overview.cs
示例4: Form1_Invalidated
void Form1_Invalidated(object sender, InvalidateEventArgs e)
{
foreach (Control item in tableLayoutPanel1.Controls)
{
if (item is CountdownStage)
((CountdownStage)item).refresh();
}
}
开发者ID:stwalkerster,项目名称:staged-countdown-timer,代码行数:8,代码来源:Form1.cs
示例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);
}
开发者ID:bsimser,项目名称:goldbox,代码行数:9,代码来源:DaxWallDefViewer.cs
示例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);
}
开发者ID:EricHripko,项目名称:Material,代码行数:9,代码来源:MaterialLabel.cs
示例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);
}
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:11,代码来源:TransparentCommandBarControl.cs
示例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;
}
开发者ID:miracle091,项目名称:transmission-remote-dotnet,代码行数:39,代码来源:PiecesGraph.cs
示例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);
}
开发者ID:sbambach,项目名称:ATF,代码行数:8,代码来源:GridView.cs
示例10: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
SetPanelArrowPosition();
panelArrowBtn.Invalidate();
base.OnInvalidated(e);
}
开发者ID:jorik041,项目名称:water-utility-mobile-map,代码行数:6,代码来源:NavigateBarOverFlowPanel.cs
示例11: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
base.OnInvalidated(e);
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:4,代码来源:ToolStrip.cs
示例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);
}
开发者ID:TEGUHRI,项目名称:messagingtoolkit-smartgateway,代码行数:10,代码来源:NavigateBarButton.cs
示例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 ();
}
开发者ID:KonajuGames,项目名称:SharpLang,代码行数:7,代码来源:ListView.cs
示例14: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
captionBand.Invalidate();
base.OnInvalidated(e);
}
开发者ID:rkBiswal,项目名称:water-utility-mobile-map,代码行数:5,代码来源:NavigateBarCollapsibleText.cs
示例15: Impact_Invalidated
void Impact_Invalidated(object sender, InvalidateEventArgs e)
{
syncContext.Send(o => UpdateAuthorInfo(Impact.GetSelectedAuthor()), this);
}
开发者ID:Nehle,项目名称:gitextensions,代码行数:4,代码来源:FormImpact.cs
示例16: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
if (this.Visible && this.ThisReallyVisible())
base.OnInvalidated(e);
}
开发者ID:jchevin,项目名称:MissionPlanner-master,代码行数:5,代码来源:QuickView.cs
示例17: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
InvalidateScrollbar();
base.OnInvalidated(e);
}
开发者ID:jeffboulanger,项目名称:connectuo,代码行数:6,代码来源:ServerListControl.cs
示例18: drawarea_Invalidated
private void drawarea_Invalidated(object sender, InvalidateEventArgs e)
{
//msg.Text = e.InvalidRect + "";
//mydraw();
}
开发者ID:sestoft,项目名称:C5,代码行数:5,代码来源:GCHForm.cs
示例19: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
// Measure that width of the text
using (var graphics = CreateGraphics())
_labelSize = graphics.MeasureString(Label.ToUpper(), MaterialTypography.Button).ToSize();
// Ensure that button respect the minimum size
Width = Math.Max(_labelSize.Width + Padding.Horizontal, _minimumWidth);
base.OnInvalidated(e);
}
开发者ID:EricHripko,项目名称:Material,代码行数:10,代码来源:MaterialButton.cs
示例20: OnInvalidated
protected override void OnInvalidated(InvalidateEventArgs e)
{
base.OnInvalidated(e);
updateBindingSourceWork();
}
开发者ID:denisdifazio,项目名称:MissionPlanner,代码行数:5,代码来源:FlightData.cs
注:本文中的System.Windows.Forms.InvalidateEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论