private void btnUpdate_Click(object sender, EventArgs e) { if (dataGridViewSalesLeads.SelectedRows.Count != 0) { frmAddUpdateSalesLead updateSalesleadForm = new frmAddUpdateSalesLead(); updateSalesleadForm.IsAdd = false; updateSalesleadForm.BaseSalesLeadForm = this; updateSalesleadForm.SelectedSalesLeadID = (int)dataGridViewSalesLeads.SelectedRows[0].Cells[0].Value; SalesleadsHandler updateSalesleadHandler = new SalesleadsHandler(updateSalesleadForm); updateSalesleadForm.Show(); } }
public SalesleadsHandler(frmAddUpdateSalesLead view) { this.viewSaleslead = view; this.viewSaleslead.AddUpdateSalesleadsHandler = this; this.modelSaleslead = new Sales.SalesLead(new Administration.Customer.Customer(), new Administration.Product.Product(), new Administration.User.User()); }