public void app_toggle_options_pane(object o, EventArgs args) { if (optionsPane.Visible) { optionsPane.HideAll(); } else { optionsPane.ShowAll(); } }