void AddWatch(WatchRowType rowType, string expressionText, bool requestUpdate) { DataGridViewRow row = new DataGridViewRow(); row.Tag = rowType; DataGridViewTextBoxCell nameCell = new DataGridViewTextBoxCell(); nameCell.Value = expressionText; row.Cells.Add(nameCell); DataGridViewTextBoxCell typeCell = new DataGridViewTextBoxCell(); typeCell.Value = "<unknown>"; row.Cells.Add(typeCell); DataGridViewTextBoxCell valueCell = new DataGridViewTextBoxCell(); valueCell.Value = "<unknown>"; row.Cells.Add(valueCell); _WatchGrid.Rows.Add(row); _TabTools.SelectedTab = tabWatch; if (requestUpdate) { UpdateWatchValue(expressionText); } }
void AddWatch(WatchRowType rowType, string expressionText) { AddWatch(rowType, expressionText, true); }