Exemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            NovaSoutezF vlozit = new NovaSoutezF(new Soutez(), _soutez);

            vlozit.ShowDialog(this);
            RefreshList();
        }
Exemplo n.º 2
0
        private void DataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView table = (DataGridView)sender;

            if (e.RowIndex == -1)
            {
                return;
            }

            Soutez a = _soutez.SelectId((int)table.Rows[e.RowIndex].Cells["id_souteze"].Value);

            using (NovaSoutezF detail = new NovaSoutezF(a, _soutez))
            {
                if (detail.ShowDialog() == DialogResult.OK)
                {
                    RefreshList();
                }
            }
        }