JD2022-TU1/main/tools/apps/ConductorDebugger/Source/Plugin/BootstrapPlugin.cs

21 lines
No EOL
507 B
C#

using TeaBox.Bootstrap;
using TeaBox;
using TeaBox.ObjectModel;
namespace ConductorDebugger.Plugin
{
[Export(typeof(IBootstrapCommand))]
public class BootstrapPlugin : IBootstrapCommand
{
public void Execute()
{
ConductorDebuggerPlugin.Instance.Start();
Application.Main.Quitted += Main_Quitted;
}
void Main_Quitted(object sender, System.EventArgs e)
{
ConductorDebuggerPlugin.Instance.Dispose();
}
}
}