Exemplo n.º 1
0
 private void deleteConfigBTN_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("Are you sure you wish to delete this pricing configuration?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1)
         == System.Windows.Forms.DialogResult.Yes)
     {
         if (priceConfigs.ContainsKey(curEditConfigID))
         {
             db.DeleteConfig(curEditConfigID);
             PopulateCurrentPriceOptions();
         }
     }
 }