當前位置: 首頁>>代碼示例>>C#>>正文


C# Forms.InvalidateEventArgs類代碼示例

本文整理匯總了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);
 }
開發者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


注:本文中的System.Windows.Forms.InvalidateEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。