示例#1
0
文件: Prueba.cs 项目: ErickMC/Llama
 private void Prueba_Load(object sender, EventArgs e)
 {
     BindingSource bs = new BindingSource();
     ClientManager clientManager = new ClientManager();
     List<Client> query = clientManager.GetActiveClients().ToList();
     bs.DataSource = query.ToList();
     dataGridView1.DataSource = bs;
     foreach (var item in query)
     {
         listBox1.Items.Add(item);
     }
 }