private void Form1_Load(object sender, EventArgs e) { POManager.readFromFile(ref rList, FileName); dateTimePicker1.Value = DateTime.Now; try { txtAverage.Text = rList.average().ToString(); } catch { MessageBox.Show("No records exist. Cannot divide by 0."); } txtTotal.Text = rList.total().ToString(); }