Property CommandsListener
CommandsListener
Gets or sets a list of the Debugger commands for the Debugger UI.
[Browsable(false)]
public IDebuggerUICommands CommandsListener { get; set; }
Property Value
Examples
Here is how to use a CommandsListener in the C# code:
using System;
using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI;
public partial class Form1 : Form, IDebuggerUICommands
{
private DebugMenu debugMenu;
private void Form1_Load(object sender, EventArgs e)
{
var debugger = new ScriptDebugger();
debugMenu = new DebugMenu();
debugMenu.Debugger = debugger;
debugMenu.CommandsListener = this;
}
}
Here is how to use a CommandsListener in the Visual Basic code:
Imports System
Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI
Partial Public Class Form1
Inherits Form
Implements IDebuggerUICommands
Private debugMenu As DebugMenu
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim debugger = New ScriptDebugger()
debugMenu = New DebugMenu()
debugMenu.Debugger = debugger
debugMenu.CommandsListener = Me
End Sub
End Class
Remarks
CommandsListener contains a custom implementation of the IDebuggerUICommands list. It can be used in addition to DefaultCommands, its default analog.