Exemplo n.º 1
0
        private void buttonPotvrdi_Click(object sender, EventArgs e)
        {
            SmerForm f = new SmerForm(null);

            f.ShowDialog();
            f.Dispose();
        }
Exemplo n.º 2
0
        private void buttonIzmena_Click(object sender, EventArgs e)
        {
            try
            {
                int             index       = dataGridView1.CurrentCell.RowIndex;
                DataGridViewRow selectedRow = dataGridView1.Rows[index];
                string          id          = selectedRow.Cells[0].Value.ToString();
                System.Diagnostics.Debug.WriteLine(id);

                Smer     smer = DataManger.GetSmerID(id);
                SmerForm f    = new SmerForm(smer);
                f.ShowDialog();
                f.Dispose();
            }
            catch
            {
            }
        }