Exemplo n.º 1
0
        private void buttonSolve_Click(object sender, EventArgs e)
        {
            var page = new AnalyticViewProblemDetailsPage(_currentProblem);

            page.Show();
            this.Close();
        }
Exemplo n.º 2
0
        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();
        }