private void DataGridView_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e) { TraceMessage msg = (TraceMessage)mDataGridView.Rows[e.RowIndex].DataBoundItem; if (msg == null) { return; } TraceMessageDialog.Show(this, msg); }
public static void Show(IWin32Window pWindow, TraceMessage pTraceMessage) { TraceMessageDialog dialog = new TraceMessageDialog(pTraceMessage); dialog.ShowDialog(pWindow); }