FormMain.cs

(开头部分) 2KB

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

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

namespace HospitalRegistrationSystem
{
    public partial class FormMain : Form
    {
        string state = "";          //就诊状态
        DataTable PatientDT = new DataTable();      //挂号数据表

        public FormMain()
        {
            InitializeComponent();
        }

        #region 加载数据方法

        /// <summary>
        /// 加载数据方法
        /// </summary>
        public void readData()
        {
            DataSet ds = new DataSet();
            ds.ReadXml("RegistrationForm.xml");
            
            PatientDT = ds.Tables[0];
            this.dataGridViewShow.DataSource = PatientDT;
        }

        #endregion

        private void FormMain_Load(object sender, EventArgs e)
        {
            readData();
            FormShow FormShow = new FormShow();
            FormShow.Show();
        }

        /// <summary>
        /// 叫号
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ButtonCall_Click(object sender, EventArgs e)
        {
            FormShow FormShow = new FormShow();
            FormShow.TimerVoice_Tick(null, null);
        }

        private void ToolStripButton1_Click(object sender, EventArgs e)
        {
            FormShow FormShow = new FormShow();
            FormShow.Show();
后面还有 34 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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