void OnCEFEvent(object[] obj) { string eventName = obj[0].ToString(); if (eventName != null) { switch (eventName) { case "onError": COnError onError = new COnError(); if (ProcessCEF(onError, obj)) { OnCEFEventOnError(onError); } break; case "print": CPrint print = new CPrint(); if (ProcessCEF(print, obj)) { OnCEFEventPrint(print); } break; case "test": CTest test = new CTest(); CallCEF("testowa", "pierwszy", "drugi", "trzeci", "czwarty"); if (ProcessCEF(test, obj)) { OnCEFEventTest(test); } break; } } }
void OnCEFEventTest(CTest obj) { ChatExtend.Output("XD 1 1={0} 2={1} 3={2}", obj.bla1, obj.bla2, obj.bla3); }