private void toggle_display() { if (WindowState == FormWindowState.Normal) { hide_popup(); } else { show_popup(); } }