예제 #1
0
 private void buttonOrisi_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);
         //brisanje ovde
         Software     software = DataManger.GetSoftverID(id);
         DeleteAction d        = new DeleteAction(software);
         DataControllercs.addAction(d);
     }
     catch {
     }
 }
예제 #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);
         Software     software = DataManger.GetSoftverID(id);
         SoftwareForm f        = new SoftwareForm(software);
         f.ShowDialog();
         f.Dispose();
     }
     catch
     {
     }
 }