//优惠券验证 private void couponTool_Click(object sender, EventArgs e) { var form = new WXCouponVerifyForm(); if (form.ShowDialog() == DialogResult.OK) { coupon.Text = (MConvert <int> .ToTypeOrDefault(form.couponValue, 0) + MConvert <int> .ToTypeOrDefault(coupon.Text, 0)).ToString(); } }
//优惠券验证 private void couponTool_Click(object sender, EventArgs e) { var form = new WXCouponVerifyForm(); if (form.ShowDialog() == DialogResult.OK) { coupon.Text = (MConvert<int>.ToTypeOrDefault(form.couponValue, 0) + MConvert<int>.ToTypeOrDefault(coupon.Text,0)).ToString(); } }