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