示例#1
0
        static void Main(string[] args)
        {
            Engine = new OpenDeckEngine(OpenDeck.Server.API.Actions.ActionScope.Server);
            Engine.AddButton(new JSONButton()
            {
                Name       = "Test",
                Tooltip    = "Test",
                Icon       = "128.jpg",
                Position   = 0,
                Scope      = OpenDeck.Server.API.Actions.ActionScope.Client,
                ActionCMD  = "SOUND",
                ActionArgs = "Hyperscape Drop.mp3"
            });

            Console.ReadKey();
            Engine.AddButton(new JSONButton()
            {
                Name       = "Test",
                Tooltip    = "Test",
                Icon       = "128.jpg",
                Position   = 5,
                Scope      = OpenDeck.Server.API.Actions.ActionScope.Client,
                ActionCMD  = "SOUND",
                ActionArgs = "Hyperscape Drop.mp3"
            });
            Console.ReadKey();
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();
            this.Engine = new OpenDeckEngine(Server.API.Actions.ActionScope.Client);

            ButtonPage buttonPage = new ButtonPage();

            buttonPage.LoadButtons(this.Engine);
            this.Content = buttonPage;
            #if DEBUG
            this.AttachDevTools();
            #endif
        }
示例#3
0
 public MainWindow()
 {
     InitializeComponent();
     #if DEBUG
     this.AttachDevTools();
     #endif
     if (!Directory.Exists(Environment.CurrentDirectory + "//res"))
     {
         Directory.CreateDirectory(Environment.CurrentDirectory + "//res");
     }
     Engine = new OpenDeckEngine(OpenDeck.Server.API.Actions.ActionScope.Client);
     Engine.onButtonAdded += Engine_onButtonAdded;
 }
示例#4
0
 public void LoadButtons(OpenDeckEngine Engine)
 {
     this.Engine = Engine;
     this.Engine.onButtonAdded += Engine_onButtonAdded;
 }