private void refreshIOTable() { IODataGrid.DataSource = myServer.ASMan.DataTableFromQuery(IOQuery); foreach (DataGridViewTextBoxColumn col in IODataGrid.Columns) { col.ToolTipText = ActivityViewer.ProgramManager.GetToolTipText(col.HeaderText); } IODataGrid.AutoResizeColumns(); }
private void SnapshotIOPanel_VisibleChanged(object sender, EventArgs e) { if (this.Visible) { if (myServer.dataRefreshInterval != 0) { IORefreshTimer.Interval = myServer.dataRefreshInterval; IORefreshTimer.Start(); } refreshIOTable(); IODataGrid.AutoResizeColumns(); } else { if (myServer.dataRefreshInterval != 0) { IORefreshTimer.Stop(); } } }