static void Main(string[] args) { var BreakpointController = new BreakpointController(); BreakpointController.Breakpoints(); BreakpointController.TestDebuggerAttributes(); var NestingController = new NestedController(); NestingController.DoSomething(); var ModelController = new ModelController(); ModelController.CreateCompany(); ModelController.CreateEmployee(); ModelController.ShowBuggy(); var FormsController = new FormsController(); FormsController.ShowCrossThreadForm(); }
/// <summary> /// Shows the dialog. /// </summary> /// <param name="breakpoint">The new breakpoint definition as specified by the user.</param> /// <param name="controller">The parent breakpoint controller.</param> /// <returns>A value indicating success.</returns> public bool ShowNewBreakpointDialog(out BreakpointController.BreakpointDefinition breakpoint, BreakpointController controller) { if (ShowDialog() == DialogResult.OK) { var bp = new BreakpointController.IOBreakpointDefinition(controller) { Address = (long)addressNumericUpDown.Value, Input = inputCheckBox.Checked, Output = outputCheckBox.Checked }; breakpoint = bp; return(true); } else { breakpoint = null; return(false); } }
/// <summary> /// Removes the specified breakpoint from the breakpoint controller and updates the list. /// </summary> /// <param name="breakpointDefinition">The breakpoint to remove.</param> private void RemoveBreakpoint(BreakpointController.BreakpointDefinition breakpointDefinition) { BreakpointController.RemoveBreakpoint(breakpointDefinition); UpdateList(); }
/// <summary> /// Shows the dialog. /// </summary> /// <param name="breakpoint">The new breakpoint definition as specified by the user.</param> /// <param name="controller">The parent breakpoint controller.</param> /// <returns>A value indicating success.</returns> public bool ShowNewBreakpointDialog(out BreakpointController.BreakpointDefinition breakpoint, BreakpointController controller) { if (nameComboBox.Items.Count > 0) { nameComboBox.SelectedIndex = 0; } if (ShowDialog() == DialogResult.OK) { var bp = new BreakpointController.RegisterBreakpointDefinition(controller) { Name = nameComboBox.Text, OnRead = readCheckBox.Checked, OnWrite = writeCheckBox.Checked, }; breakpoint = bp; return(true); } else { breakpoint = null; return(false); } }
/// <summary> /// Shows the dialog. /// </summary> /// <param name="breakpoint">The new breakpoint definition as specified by the user.</param> /// <param name="controller">The parent breakpoint controller.</param> /// <returns>A value indicating success.</returns> public bool ShowNewBreakpointDialog(out BreakpointController.BreakpointDefinition breakpoint, BreakpointController controller) { if (ShowDialog() == DialogResult.OK) { var bp = new BreakpointController.MemoryBreakpointDefinition(controller) { Address = (long)addressNumericUpDown.Value, Count = (int)countNumericUpDown.Value, OnRead = readCheckBox.Checked, OnWrite = writeCheckBox.Checked, OnExecute = executeCheckBox.Checked }; breakpoint = bp; return(true); } else { breakpoint = null; return(false); } }