public void initComboBoxes()
        {
            BLClients bLClients = new BLClients();
            DataTable clienti   = bLClients.GetClient();

            cbClient.DataSource    = clienti;
            cbClient.ValueMember   = "PartnerId";
            cbClient.DisplayMember = "PartnerName";
            cbClient.Text          = "Clienti";
        }
예제 #2
0
 public void initializareDataGridView()
 {
     try
     {
         BLClients blClienti = new BLClients();
         DataTable dt        = new DataTable();
         dt = blClienti.GetClient();
         dataGridViewClienti.DataSource = dt;
         filled = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }