private void buttonAddFuture_Click(object sender, EventArgs e) { AddFutureForm aff = new AddFutureForm(); if (aff.ShowDialog() == DialogResult.OK) { dataGridViewFutures.Rows.Add(new object[] { aff.Maturity, PriceFuture(aff.Maturity) }); } }