public void RemoveBreakpoint(NuGenBreakpointInformation breakpoint) { GridEXRow row = FindRow(breakpoint); RowDelete(row); row.Delete(); NuGenProject.Instance.IsSaved = false; }
public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation) { NuGenCodeDisplayer codeDisplayer = FindCodeDisplayer(codeObject); if (codeDisplayer != null) { codeDisplayer.UpdateBreakpoint(breakpointInformation); } }
public void UpdateBreakpoint(NuGenBreakpointInformation breakpointInformation) { NuGenFunctionBreakpointInformation functionBreakpointInformation = breakpointInformation as NuGenFunctionBreakpointInformation; if (!Window.IsDisposed && Window.Visible && functionBreakpointInformation != null) { Window.UpdateBreakpoint(functionBreakpointInformation); } }
private void breakpointsGrid_CellDoubleClick(object sender, EventArgs e) { if (breakpointsGrid.CurrentRow != null) { GridEXRow row = breakpointsGrid.CurrentRow; NuGenBreakpointInformation breakpoint = NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value] as NuGenBreakpointInformation; breakpoint.NavigateTo(); } }
public void DeactivateBreakpoint(NuGenBreakpointInformation breakpoint) { if (invokee.InvokeRequired) { invokee.Invoke(DeactivateBreakpointMethod, new object[] { breakpoint }); } else { DeactivateBreakpointMethod(breakpoint); } }
public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation) { if (invokee.InvokeRequired) { invokee.Invoke(UpdateBreakpointMethod, new object[] { codeObject, breakpointInformation }); } else { UpdateBreakpointMethod(codeObject, breakpointInformation); } }
public void RemoveBreakpoint(NuGenBreakpointInformation breakpoint) { if (invokee.InvokeRequired) { invokee.Invoke(RemoveBreakpointMethod, new object[] { breakpoint }); } else { RemoveBreakpointMethod(breakpoint); } }
private void RowContextMenu_Opening(object sender, CancelEventArgs e) { if (breakpointsGrid.SelectedItems.Count == 1) { GridEXRow row = breakpointsGrid.SelectedItems[0].GetRow(); NuGenBreakpointInformation breakpoint = NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value] as NuGenBreakpointInformation; bool breakpointActive = (breakpoint.State == BreakpointState.Active); ActivateBreakpointMenuItem.Visible = !breakpointActive; DeactivateBreakpointMenuItem.Visible = breakpointActive; } }
private void DisplayCodeMenuItem_Click(object sender, EventArgs e) { if (breakpointsGrid.SelectedItems.Count == 1) { GridEXRow row = breakpointsGrid.SelectedItems[0].GetRow(); NuGenBreakpointInformation breakpoint = NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value] as NuGenBreakpointInformation; if (breakpoint != null) { breakpoint.NavigateTo(); } } }
public void AddBreakpoint(NuGenBreakpointInformation breakpoint) { breakpointsGrid.AddItem(); GridEXRow row = breakpointsGrid.GetRow(breakpointsGrid.RowCount - 1); row.BeginEdit(); test = row; row.Cells[0].Value = (breakpoint.State == BreakpointState.Active); row.Cells[1].Value = breakpoint.DisplayName; row.Cells[2].Value = breakpoint.OffsetValue; NuGenHelperFunctions.TaggedObjects.Add((String)row.Cells[1].Value + (String)row.Cells[2].Value, breakpoint); row.EndEdit(); }
private void ToggleBreakpointActive(NuGenBreakpointInformation breakpoint, bool isActive) { GridEXRow row = FindRow(breakpoint); row.BeginEdit(); breakpoint.State = (isActive ? BreakpointState.Active : BreakpointState.Inactive); if (row != null) { row.Cells[0].Value = isActive; } row.EndEdit(); NuGenProject.Instance.IsSaved = false; }
private GridEXRow FindRow(NuGenBreakpointInformation breakpoint) { GridEXRow result = null; int index = 0; bool found = false; while (!found && index < breakpointsGrid.RowCount) { GridEXRow row = breakpointsGrid.GetRow(index++); if (breakpoint.CompareTo(NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value]) == 0) { result = row; found = true; } } return(result); }
public void DeactivateBreakpoint(NuGenBreakpointInformation breakpoint) { ToggleBreakpointActive(breakpoint, false); }
private GridEXRow FindRow(NuGenBreakpointInformation breakpoint) { GridEXRow result = null; int index = 0; bool found = false; while (!found && index < breakpointsGrid.RowCount) { GridEXRow row = breakpointsGrid.GetRow(index++); if (breakpoint.CompareTo(NuGenHelperFunctions.TaggedObjects[(String)row.Cells[1].Value + (String)row.Cells[2].Value]) == 0) { result = row; found = true; } } return result; }
public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation) { if(invokee.InvokeRequired) invokee.Invoke(UpdateBreakpointMethod, new object[]{codeObject, breakpointInformation}); else UpdateBreakpointMethod(codeObject, breakpointInformation); }
public void ActivateBreakpoint(NuGenBreakpointInformation breakpoint) { ToggleBreakpointActive(breakpoint, true); }
public void DeactivateBreakpoint(NuGenBreakpointInformation breakpoint) { if(invokee.InvokeRequired) invokee.Invoke(DeactivateBreakpointMethod, new object[]{breakpoint}); else DeactivateBreakpointMethod(breakpoint); }
public void DeactivateBreakpoint(NuGenBreakpointInformation breakpoint) { breakpointsPanel.DeactivateBreakpoint(breakpoint); }
public void AddBreakpoint(NuGenBreakpointInformation breakpoint) { breakpointsPanel.AddBreakpoint(breakpoint); }
public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation) { }
public void RemoveBreakpoint(NuGenBreakpointInformation breakpoint) { breakpointsPanel.RemoveBreakpoint(breakpoint); }
public void AddBreakpoint(NuGenBreakpointInformation breakpoint) { if(invokee.InvokeRequired) invokee.Invoke(AddBreakpointMethod, new object[]{breakpoint}); else AddBreakpointMethod(breakpoint); }