예제 #1
0
        //优惠券验证
        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();
            }
        }
예제 #2
0
 //优惠券验证
 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();
     }
 }