//click event displays all employees earning above the inputted threshold private void employeesEarningOverButton_Click(object sender, EventArgs e) { try { decimal threshold = decimal.Parse(thresholdTextBox.Text); var employeeList = Operations.EmployeesEarningOver(threshold); employeesEarningOverDataGridView.DataSource = employeeList; } catch { MessageBox.Show("Please enter a valid threshold"); } }