Esempio n. 1
0
 private void SalesService_Load(object sender, EventArgs e)
 {
     dgvProduct.EnableHeadersVisualStyles = false;
     dgvProduct.ColumnHeadersDefaultCellStyle.BackColor = Color.FromArgb(40, 40, 40);
     dgvProduct.DataSource = pbo.getServDataTableSale();
     foreach (User user in ubo.getLinkedUser())
     {
         if (user.type.Equals("Cliente"))
         {
             clients.AddLast(user);
             cmbClients.Items.Add(user.dni + " - " + user.name);
         }
     }
     lblFactura.Text = sbo.generateCode();
 }