Ejemplo n.º 1
0
        private void button_add_Click_1(object sender, EventArgs e)
        {
            frm_Add_acte f = new frm_Add_acte();

            f.ShowDialog();
            if (f.DialogResult == DialogResult.OK)
            {
                grid_list();
            }
        }
Ejemplo n.º 2
0
 private void button_edit_Click(object sender, EventArgs e)
 {
     try
     {
         int          rowindex = dataGridView.CurrentCell.RowIndex;               //return nr randului selectat , incepe cu 0
         int          id_act   = (int)dataGridView.Rows[rowindex].Cells[0].Value; //returneaza id-ul randului selectat
         frm_Add_acte f        = new frm_Add_acte(true, id_act);
         f.ShowDialog();
         if (f.DialogResult == DialogResult.OK)
         {
             grid_list();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message + "\n" + ex.StackTrace + "\n" + ex.InnerException);
     }
 }