28 lines
702 B
C#
28 lines
702 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using JD.Reflection.Attributes;
|
|
using JD.TeaBoxAddinSystem.Bootstrap;
|
|
using JD.Timeline.Plugin;
|
|
using TeaBox.Bootstrap;
|
|
using TeaBox.ObjectModel;
|
|
|
|
namespace Traviata
|
|
{
|
|
[Export(typeof(IBootstrapCommand))]
|
|
public class BootstrapPlugin : IBootstrapCommand
|
|
{
|
|
public void Execute()
|
|
{
|
|
TimelinePlugin.Instance = new TraviataPlugin();
|
|
TraviataPlugin.Instance.Start();
|
|
Application.Main.Quitted += Main_Quitted;
|
|
}
|
|
|
|
void Main_Quitted(object sender, System.EventArgs e)
|
|
{
|
|
TraviataPlugin.Instance.Dispose();
|
|
}
|
|
}
|
|
}
|