Exemplo n.º 1
0
 public void ClearWatch()
 {
     for (int i = 0; i < this.WdataGridView1.Rows.Count; i++)
     {
         DebugWatchListWindow.SetUndefinedValue(i);
     }
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 private void RestoreWatch()
 {
     DebugWatchListWindow.RemoveAll();
     foreach (string s in watches)
     {
         AddVariable(s, false);
     }
     watches.Clear();
 }
Exemplo n.º 5
0
 public void RefreshPad(IList <IListItem> items)
 {
     try
     {
         DebugWatchListWindow.RefreshWatch();
         AdvancedDataGridView.TreeGridNode.UpdateNodesForLocalList(DebugVariablesListWindow.watchList, DebugVariablesListWindow.watchList.Nodes, items);
     }
     catch (System.Exception)
     {
     }
 }
Exemplo n.º 6
0
 public void GotoWatch()
 {
     BottomTabsVisible = true;
     SelectContent(DebugWatchListWindow, true);
     DebugWatchListWindow.AddNewEntry("");
 }
Exemplo n.º 7
0
 private void ClearAndSaveWatch()
 {
     watches.AddRange(DebugWatchListWindow.GetExpressions());
     DebugWatchListWindow.RemoveAll();
 }