protected override void OnClosed(EventArgs e) { base.OnClosed(e); EditorService.Stop(); EngineService.Stop(); LogService.Stop(); }
protected override void OnLoad(EventArgs e) { LogService.Start(mLogsControl.mEditorLogControl); EditorService.Start(); base.OnLoad(e); try { EngineService.Start(mEnginePanel); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
void mSocket_MessageReceived(object sender, WebSocket4Net.MessageReceivedEventArgs e) { LogService.Log("socket_DataReceived:" + e.Message); EditorService.ProcessMessage(e.Message); }