public static void handleHook(string hookname) { if (!KDMX.DMXEventBusy) { KDMX.DMXEventBusy = true; KDMX.outputConsole("Event! " + hookname); getEventInfo(hookname); setEventDone(); } }
public static void getEventInfo(string eventName) { for (int i = 0; i < dmxEventList.Count; i++) { string eventType = dmxEventList[i].Attributes["type"].InnerText; string eventContinuous = dmxEventList[i].Attributes["continuous"].InnerText; if (eventName == eventType) { KDMX.outputConsole("Found an event with that name in the configuration!"); KDMX.outputConsole("Event name: " + eventType); KDMX.outputConsole("Continuous: " + eventContinuous); dmxTimeblockList = dmxEventList[i].SelectNodes("/timeblock"); for (int j = 0; j < dmxEventList[i].Count; j++) { } } } }