using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using Casic.Birmm.RbFreqStandMeasure.Tools; using System.Reflection; namespace Casic.Birmm.RbFreqStandMeasure { public partial class MyDataGridView : DataGridView { public MyDataGridView() { InitializeComponent(); } protected override void OnPaint(PaintEventArgs e) { try { base.OnPaint(e); } catch(Exception ex) { LogHelper.WriteInfoLog(MethodBase.GetCurrentMethod().DeclaringType, "重绘通道列表出错:" + ex.Message); Invalidate(); } } } }