private void toolStripButton1_Click(object sender, EventArgs e) { Discount_Card_Add DCA = new Discount_Card_Add(admin); DCA.ShowDialog(); showDiscountCards(); }
private void editCard() { if (cardsList_dataGridView1.SelectedRows.Count > 0) { Discount_Card_Add addCardForm = new Discount_Card_Add(admin, Convert.ToInt32(cardsList_dataGridView1.SelectedRows[0].Cells[0].Value)); addCardForm.ShowDialog(); showDiscountCards(); } }