예제 #1
0
        public void RemoveBreakpoint(NuGenBreakpointInformation breakpoint)
        {
            GridEXRow row = FindRow(breakpoint);

            RowDelete(row);
            row.Delete();
            NuGenProject.Instance.IsSaved = false;
        }
예제 #2
0
        public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation)
        {
            NuGenCodeDisplayer codeDisplayer = FindCodeDisplayer(codeObject);

            if (codeDisplayer != null)
            {
                codeDisplayer.UpdateBreakpoint(breakpointInformation);
            }
        }
예제 #3
0
        public void UpdateBreakpoint(NuGenBreakpointInformation breakpointInformation)
        {
            NuGenFunctionBreakpointInformation functionBreakpointInformation = breakpointInformation as NuGenFunctionBreakpointInformation;

            if (!Window.IsDisposed && Window.Visible && functionBreakpointInformation != null)
            {
                Window.UpdateBreakpoint(functionBreakpointInformation);
            }
        }
예제 #4
0
        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();
            }
        }
예제 #5
0
 public void DeactivateBreakpoint(NuGenBreakpointInformation breakpoint)
 {
     if (invokee.InvokeRequired)
     {
         invokee.Invoke(DeactivateBreakpointMethod, new object[] { breakpoint });
     }
     else
     {
         DeactivateBreakpointMethod(breakpoint);
     }
 }
예제 #6
0
 public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation)
 {
     if (invokee.InvokeRequired)
     {
         invokee.Invoke(UpdateBreakpointMethod, new object[] { codeObject, breakpointInformation });
     }
     else
     {
         UpdateBreakpointMethod(codeObject, breakpointInformation);
     }
 }
예제 #7
0
 public void RemoveBreakpoint(NuGenBreakpointInformation breakpoint)
 {
     if (invokee.InvokeRequired)
     {
         invokee.Invoke(RemoveBreakpointMethod, new object[] { breakpoint });
     }
     else
     {
         RemoveBreakpointMethod(breakpoint);
     }
 }
예제 #8
0
        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;
            }
        }
예제 #9
0
        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();
                }
            }
        }
예제 #10
0
        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();
        }
예제 #11
0
        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;
        }
예제 #12
0
        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 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();
		}
예제 #16
0
		public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation)
		{
            if(invokee.InvokeRequired)
				invokee.Invoke(UpdateBreakpointMethod, new object[]{codeObject, breakpointInformation});
			else
				UpdateBreakpointMethod(codeObject, breakpointInformation);
		}
예제 #17
0
 public void DeactivateBreakpoint(NuGenBreakpointInformation breakpoint)
 {
     ToggleBreakpointActive(breakpoint, false);
 }
		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);
			}
		}
예제 #20
0
 public void ActivateBreakpoint(NuGenBreakpointInformation breakpoint)
 {
     ToggleBreakpointActive(breakpoint, true);
 }
		public void ActivateBreakpoint(NuGenBreakpointInformation breakpoint)
		{
			ToggleBreakpointActive(breakpoint, true);
		}
		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;
		}
예제 #23
0
		public void DeactivateBreakpoint(NuGenBreakpointInformation breakpoint)
		{
            if(invokee.InvokeRequired)
				invokee.Invoke(DeactivateBreakpointMethod, new object[]{breakpoint});
			else
				DeactivateBreakpointMethod(breakpoint);
		}
예제 #24
0
		public void UpdateBreakpoint(NuGenBreakpointInformation breakpointInformation)
		{
			NuGenFunctionBreakpointInformation functionBreakpointInformation = breakpointInformation as NuGenFunctionBreakpointInformation;

			if (!Window.IsDisposed && Window.Visible && functionBreakpointInformation != null)
			{
				Window.UpdateBreakpoint(functionBreakpointInformation);
			}
		}
예제 #25
0
 public void DeactivateBreakpoint(NuGenBreakpointInformation breakpoint)
 {
     breakpointsPanel.DeactivateBreakpoint(breakpoint);
 }
예제 #26
0
 public void AddBreakpoint(NuGenBreakpointInformation breakpoint)
 {
     breakpointsPanel.AddBreakpoint(breakpoint);
 }
예제 #27
0
 public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation)
 {
 }
예제 #28
0
 public void RemoveBreakpoint(NuGenBreakpointInformation breakpoint)
 {
     breakpointsPanel.RemoveBreakpoint(breakpoint);
 }
예제 #29
0
		public void AddBreakpoint(NuGenBreakpointInformation breakpoint)
		{
            if(invokee.InvokeRequired)
				invokee.Invoke(AddBreakpointMethod, new object[]{breakpoint});
			else
				AddBreakpointMethod(breakpoint);
		}