Ejemplo n.º 1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            CardForm newForm = new CardForm(1, string.Empty);

            newForm.ShowDialog();
            LoadData();
        }
Ejemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (dgv.SelectedRows.Count == 1)
     {
         CardForm newForm = new CardForm(2, dgv.SelectedRows[0].Cells["alias"].Value.ToString());
         newForm.ShowDialog();
         LoadData();
     }
 }