コード例 #1
0
        private void dgvTransactions_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var transaccion = dgvTransactions.CurrentRow.DataBoundItem as TransactionViewModel;

            frmTransactions frm = new frmTransactions(customer, transaccion.ID);

            frm.ShowDialog();
        }
コード例 #2
0
        private void btnPurchase_Click(object sender, EventArgs e)
        {
            Customer customer = BLL.CustomerServices.FindById(Int32.Parse(dgvCustomers.CurrentRow.Cells["CustomerID"].Value.ToString()));

            frmTransactions frm = new frmTransactions(customer, TransactionType.Purchase);

            frm.ShowDialog();
        }