private void mnuPardakht_Click(object sender, EventArgs e) { try { frmCash_Pardakht f = new frmCash_Pardakht(); f.op = "Add"; f.Form_Load(); f.ShowDialog(); } catch { } }
private void mnuCash_Click(object sender, EventArgs e) { try { frmCash_Pardakht f = new frmCash_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 { } }