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 DebuggerControlToolbar debuggerControlToolbar;
private void Form1_Load(object sender, EventArgs e)
{
var debugger = new ScriptDebugger();
debuggerControlToolbar = new DebuggerControlToolbar();
debuggerControlToolbar.Debugger = debugger;
debuggerControlToolbar.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 debuggerControlToolbar As DebuggerControlToolbar
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim debugger = New ScriptDebugger()
debuggerControlToolbar = New DebuggerControlToolbar()
debuggerControlToolbar.Debugger = debugger
debuggerControlToolbar.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.