示例#1
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            Discount_Card_Add DCA = new Discount_Card_Add(admin);

            DCA.ShowDialog();
            showDiscountCards();
        }
示例#2
0
 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();
     }
 }