Example #1
0
        private void DataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView table = (DataGridView)sender;

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

            int   id = ((int)table.Rows[e.RowIndex].Cells["kID"].Value);
            Kluby a  = _klubyDomain.SelectPodleID(id);

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