private void button2_Click(object sender, EventArgs e) { List <int> marked = Methods.getIdFromColumnNO(0, dataGridView1.SelectedRows); var form = new FormFaults(); form.dataGridView1.DataSource = form.Dataset.Where(x => marked.Contains(x.identyfikator_mieszkania)).ToList(); form.Show(); }
private void button12_Click(object sender, EventArgs e) { var form = new FormFaults(); form.Show(); }