private void calCash_btn_Click(object sender, EventArgs e) { if (rent_rdb.Checked) { CashChange_Form cc = new CashChange_Form(); cc.Show(); int price = 0; for (int i = 0; i < rentBook_dgv.Rows.Count; i++) { price += int.Parse(rentBook_dgv.Rows[i].Cells[3].Value.ToString()); } cc.price = price; } }
private void Rent_Form_FormClosing(object sender, FormClosingEventArgs e) { CashChange_Form cc = new CashChange_Form(); cc.Close(); }