示例#1
0
 private void buttonObrisi_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);
         Ucionica     ucionica = DataManger.GetUcionicaID(id);
         DeleteAction d        = new DeleteAction(ucionica);
         DataControllercs.addAction(d);
     }
     catch
     {
     }
 }
示例#2
0
        private void buttonIzmeni_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);

                Ucionica     ucionica = DataManger.GetUcionicaID(id);
                UcionicaForm uf       = new UcionicaForm(ucionica);

                uf.ShowDialog();
                uf.Dispose();
            }
            catch
            {
            }

            //brisanje ovde
        }