public void ClearWatch() { for (int i = 0; i < this.WdataGridView1.Rows.Count; i++) { DebugWatchListWindow.SetUndefinedValue(i); } }
public void AddVariable(ListItem nv) { if (row_exists(nv.Name)) { return; } //this.WdataGridView1.Rows.Add(); int i = this.WdataGridView1.Rows.Count - 1; //this.BottomTabControl.SelectTab(this.tpWarningList); BottomTabsVisible = true; SelectContent(DebugWatchListWindow, false); //if (this.WdataGridView1.Rows.Count == 1 && this.WdataGridView1.Rows[0].Cells[0].Value == null) i = 0; if (this.WdataGridView1.Rows[0].Cells[0].Value == null) { i = 0; } else //if (this.WdataGridView1.Rows[1].Cells[0].Value != null) { this.WdataGridView1.Rows.Insert(0, 1); i = 0; //i = this.WdataGridView1.Rows.Count-1; } if (this.WdataGridView1.Rows.Count == 1) { this.WdataGridView1.Rows.Insert(0, 1); } this.WdataGridView1.Rows[i].Cells[0].Value = nv.Name; DebugWatchListWindow.RefreshRow(i); }
public void AddVariable(string expr, bool show_tab) { if (row_exists(expr)) { return; } RetValue rv = DebugUtils.DebuggerManager.Evaluate(expr); int i = this.WdataGridView1.Rows.Count - 1; BottomTabsVisible = true; if (show_tab) { SelectContent(DebugWatchListWindow, false); } //this.BottomTabControl.SelectTab(this.tpWarningList); //if (this.WdataGridView1.Rows.Count == 1 && this.WdataGridView1.Rows[0].Cells[0].Value == null) i = 0; if (this.WdataGridView1.Rows[0].Cells[0].Value == null) { i = 0; } else //if (this.WdataGridView1.Rows[1].Cells[0].Value != null) { this.WdataGridView1.Rows.Insert(0, 1); i = 0; //i = this.WdataGridView1.Rows.Count-1; } if (this.WdataGridView1.Rows.Count == 1) { this.WdataGridView1.Rows.Insert(0, 1); } this.WdataGridView1.Rows[i].Cells[0].Value = expr; DebugWatchListWindow.RefreshRow(i); }
private void RestoreWatch() { DebugWatchListWindow.RemoveAll(); foreach (string s in watches) { AddVariable(s, false); } watches.Clear(); }
public void RefreshPad(IList <IListItem> items) { try { DebugWatchListWindow.RefreshWatch(); AdvancedDataGridView.TreeGridNode.UpdateNodesForLocalList(DebugVariablesListWindow.watchList, DebugVariablesListWindow.watchList.Nodes, items); } catch (System.Exception) { } }
public void GotoWatch() { BottomTabsVisible = true; SelectContent(DebugWatchListWindow, true); DebugWatchListWindow.AddNewEntry(""); }
private void ClearAndSaveWatch() { watches.AddRange(DebugWatchListWindow.GetExpressions()); DebugWatchListWindow.RemoveAll(); }