private void GetReport(object sender, EventArgs e) { try { int selectedId = (int)ListYear.SelectedValue; Report.Text = DataBaseGetRows.GetReportInfo(selectedId, IDLawyer); } catch { } }