private void btnNew_Click(object sender, EventArgs e) { CardForm newForm = new CardForm(1, string.Empty); newForm.ShowDialog(); LoadData(); }
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(); } }