魔方电影售票管理系统/frm_Register.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 魔方电影售票管理系统
{
    public partial class frm_Register : Form
    {
        public frm_Register()
        {
            InitializeComponent();
            this.ForeColor = frm_Setform.colors;
            this.Font = frm_Setform.font;
        }
        /// <summary>
        /// 取消
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        /// <summary>
        /// 注册
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            if (txt_IDcard.Text==""||txt_phone.Text==""||txt_userNmae.Text==""||cbb_userType.Text=="")
            {
                MessageBox.Show("输入内容不允许为空!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information);
                return;
            }
            if (IsIDcard(txt_IDcard.Text) == false)
            {
                MessageBox.Show("请输入正确的身份证号码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (IsPhone(txt_phone.Text)==false)
            {
                MessageBox.Show("请输入正确的手机号码!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            
            //折扣
            double zhekou = 0;
            switch (cbb_userType.Text)
            {
                case "普通会员":
                    zhekou = 0.9;
                    break;
后面还有 55 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。