Пример #1
0
        private void bt_vip_Click(object sender, EventArgs e)
        {
            VipForm      vipForm = new VipForm();
            DialogResult result  = vipForm.ShowDialog();

            if (result == DialogResult.OK)
            {
                if (!manager.enterVipMode(vipForm.vipCode))
                {
                    MessageBox.Show("会员卡号输入错误,请检查后重试!", "错误");
                }
            }
        }
Пример #2
0
 private void bt_vip_Click(object sender, EventArgs e)
 {
     VipForm vipForm = new VipForm();
     DialogResult result = vipForm.ShowDialog();
     if(result == DialogResult.OK)
     {
         if (!manager.enterVipMode(vipForm.vipCode))
         {
             MessageBox.Show("会员卡号输入错误,请检查后重试!", "错误");
         }
     }
 }