private void btnSelect_Click(object sender, EventArgs e) { customer c = (customer)bdgCustomer.Current; if (c != null) { CustomerForm cf = new CustomerForm(c); desk.AddTab(cf, "Edição de Cliente", true); } }
private void btnNewCustomer_ItemClick(object sender, ItemClickEventArgs e) { CustomerForm cf = new CustomerForm(null); AddTab(cf, "Novo Cliente", false); }
private void btnOpenNew_Click(object sender, EventArgs e) { CustomerForm cf = new CustomerForm(null); cf.loadFromCnpj(((customer)bdgCustomer.Current), ((address)bdgAddress.Current)); desk.AddTabAndCloseCurrent(cf, "Novo cliente", true); }