FormShow.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Media;
using System.Speech.Synthesis;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HospitalRegistrationSystem
{
public partial class FormShow : Form
{
enum WeekDay { 星期日, 星期一, 星期二, 星期三, 星期四, 星期五, 星期六 }; //日期显示的文本
string year = ""; //年份
string month = ""; //月份
string day = ""; //日期
string week = ""; //星期
string hour = ""; //时
string minute = ""; //分
string second = ""; //秒
int imgIndex = 0; //图片切换索引
int voiceIndex = 0; //语音播报索引
DataTable PatientDT = new DataTable(); //挂号数据表
public FormShow()
{
InitializeComponent();
}
#region 加载数据方法
/// <summary>
/// 加载数据方法
/// </summary>
public void readData()
{
DataSet ds = new DataSet();
ds.ReadXml("RegistrationForm.xml");
PatientDT = ds.Tables[0];
//显示指定行数
for (int i = 0; i < 12; i++)
{
dataGridViewShow.Rows.Add(PatientDT.Rows[i].ItemArray);
}
}
#endregion
#region 朗读文本方法
SpeechSynthesizer speech = new SpeechSynthesizer();
SoundPlayer play = new SoundPlayer();
public void spVoice()
{
string name = dataGridViewShow.Rows[0].Cells[1].Value.ToString();
后面还有 186 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。