/* Windows Listener event handler, detects when a window closes */ public void WindowClosed(string windowTitle) { WriteDebug(WRITE_DEBUG, "Window closed: " + windowTitle); Table t = FindTableByWindowTitle(windowTitle); if (t != null) { // TODO TEMP REMOVE DIALOG DialogResult result = MessageBox.Show("Close the hud?", "PokerMuck", MessageBoxButtons.YesNo); if (result == DialogResult.Yes) { t.Terminate(); tables.Remove(t); } } }