private void buttonDetails_Click(object sender, EventArgs e) { DetailsExpanded = !panelDetails.Visible; }