Exemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            List <int> marked = Methods.getIdFromColumnNO(1, dataGridView1.SelectedRows);
            var        form   = new FormBuildings();

            form.dataGridView1.DataSource = form.Dataset.Where(x => marked.Distinct().Contains(x.identyfikator_budynku)).ToList();
            form.Show();
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            List <int> marked = new List <int>();

            foreach (DataGridViewRow x in dataGridView1.SelectedRows)
            {
                marked.Add((int)x.Cells[1].Value);
            }
            var form = new FormBuildings();

            form.dataGridView1.DataSource = form.Dataset.Where(x => marked.Contains(x.identyfikator_budynku)).ToList();
            form.Show();
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            var form = new FormBuildings();

            form.Show();
        }