Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 private void btnNewCustomer_ItemClick(object sender, ItemClickEventArgs e)
 {
     CustomerForm cf = new CustomerForm(null);
     AddTab(cf, "Novo Cliente", false);
 }
Esempio n. 3
0
 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);
 }