private void btnGraphs_Click(object sender, EventArgs e)
 {
     if (batchResult != null)
     {
         var form = new GraphsForm(batchResult);
         form.Show();
     }
 }
        private void btnGraphs_Click(object sender, EventArgs e)
        {
            if (batchResult != null) {
                var form = new GraphsForm(batchResult);
                form.Show();
            }

        }