예제 #1
0
        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();
            }
        }
예제 #2
0
 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());
 }