private void ClasseLista_Load(object sender, EventArgs e) { ClasseRepository rep = new ClasseRepository(ConexaoService.GetConnectionString()); dataGridView.DataSource = rep.Lista(); }