public void RefreshPane() { foreach(Control c in m_panelMain.Controls) { PanelButton b = c as PanelButton; if(b!= null) b.UpdateDisplay(); } }