private void buttonSolve_Click(object sender, EventArgs e) { var page = new AnalyticViewProblemDetailsPage(_currentProblem); page.Show(); this.Close(); }
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var id = (int)dataGridView1.Rows[e.RowIndex].Cells["Id"].Value; var page = new AnalyticViewProblemDetailsPage(_allProblems.Single(problem => problem.Id == id)); page.Show(); this.Close(); }