Example #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();
        }
        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();
        }