Пример #1
0
 protected void btnGenerate_Click(object sender, EventArgs e)
 {
     int GCquantity;
     decimal GCvalue;
     try
     {
         GCquantity = Convert.ToInt32(txtGCnum.Text);
         GCvalue = Convert.ToDecimal(txtGCval.Text);
     }
     catch {
         lblProblems.Text = "Numberic values must be entered (integer and decimal respectively)";
         return;
     }
     GoDine a = new GoDine();
     a.GiftCard_Create_IT_TYPE_loop(GCquantity, GCvalue);
     txtGCnum.Text = "";
     txtGCval.Text = "";
     lblProblems.Text = "Successfully created  " + GCquantity.ToString() + "  giftcards of  " + GCvalue.ToString("0.00") + " $  each";
     Set_Table_Filtered("", null);
 }