private void mnuPardakht_Click(object sender, EventArgs e) { try { frmBank_Pardakht f = new frmBank_Pardakht(); f.Form_Load(); f.op = "Add"; f.ShowDialog(); } catch { } }
private void mnuBank_Click(object sender, EventArgs e) { try { frmBank_Pardakht f = new frmBank_Pardakht(); f.Form_Load(); f.op = "Add"; f.txtDate.Text = dgvTables.CurrentRow.Cells["Date"].Value.ToString(); f.Loan_Date = dgvTables.CurrentRow.Cells["Date"].Value.ToString(); f.txtCode.Text = Code; f.Loan_Code = Code; f.txtCash.Text = dgvTables.CurrentRow.Cells["Price"].Value.ToString(); f.Loan_Price = Convert.ToInt64(dgvTables.CurrentRow.Cells["Price"].Value); f.txtBabat_Code.Text = "029925"; f.Type = "Loan"; f.ShowDialog(); } catch { } }