public int getButtonStatus(string id) { if (!buttons.ContainsKey (id)) return 0; return buttons[id]; }