/// <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;
     }
 }
Example #2
0
 /// <summary>
 /// Creates the Breakpoint controller.
 /// </summary>
 protected virtual void CreateBreakpointController()
 {
     BreakpointController = new BreakpointController(this);
 }
Example #3
0
 /// <summary>
 /// Creates the Breakpoint controller.
 /// </summary>
 protected virtual void CreateBreakpointController()
 {
     BreakpointController = new BreakpointController(this);
 }
 /// <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;
     }
 }
Example #5
0
 /// <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();
 }
Example #6
0
 /// <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;
     }
 }
Example #7
0
 public IOBreakpointDefinition(BreakpointController controller) : base(controller)
 {
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="controller">The parent Breakpoint Controller.</param>
 public BreakpointDefinition(BreakpointController controller)
 {
     Controller = controller;
 }
Example #9
0
 public RegisterBreakpointDefinition(BreakpointController controller) : base(controller)
 {
 }
Example #10
0
 public RegisterBreakpointDefinition(BreakpointController controller)
     : base(controller)
 {
 }
Example #11
0
 public MemoryBreakpointDefinition(BreakpointController controller)
     : base(controller)
 {
 }
Example #12
0
 public LineBreakpointDefinition(BreakpointController controller)
     : base(controller)
 {
 }
Example #13
0
 /// <summary>
 /// Initializes a new instance.
 /// </summary>
 /// <param name="controller">The parent Breakpoint Controller.</param>
 public BreakpointDefinition(BreakpointController controller)
 {
     Controller = controller;
 }