AutoPatientInfoRecorder/Main.cs

(开头部分) 6KB

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

using AntdUI;
using NetAutoGUI;

namespace AutoPatientInfoRecorder
{
    public partial class Main : AntdUI.Window
    {
        public Main()
        {
            InitializeComponent();
        }
        private void Main_Load(object sender, EventArgs e)
        {
            tab_PatientInfo.Columns = new Column[] {
           new ColumnCheck("Check"){ Fixed=true},
           new("Name","姓名"){ Fixed=true},
           new("Sex","性别"){ Fixed=true},
           new("Age","年龄",ColumnAlign.Center),
           new("Address","住址"),
           new("Doctor","医生"),
           new("Res","诊断"),
           new("Fee","费用"),
           };
        }
        private void Btn_mode_Click(object sender, EventArgs e)
        {
            Config.IsDark = !Config.IsDark;
            Dark = Config.IsDark;
            if (Dark)
            {
                btn_mode.ImageSvg = Properties.Resources.app_dark;
                BackColor = Color.Black;
                ForeColor = Color.White;
            }
            else
            {
                btn_mode.ImageSvg = Properties.Resources.app_light;
                BackColor = Color.White;
                ForeColor = Color.Black;
            }
            OnSizeChanged(e);
        }
        private void Btn_SearchPatient_Click(object sender, EventArgs e)
        {
            var list = new List<PatientInfo>(10) {
                new ("测试男","男",18,"广东省深圳市南山区科苑路科苑路88号","测试医生1","消化不良",188),
                new ("测试女","女",24,"广州天河龙洞植物园","测试医生2","轻度过敏",166)
            };
            tab_PatientInfo.DataSource = list;
        }
        public void Btn_AddNew_Click(object sender, EventArgs e)
        {
            if (tab_PatientInfo.DataSource is List<PatientInfo> dataSource)
            {
                dataSource = dataSource.Where(item => item.Check).ToList();
                if (dataSource.Count > 0)
                {
                    //NetAutoGUI.Window win = GUI.Application.FindWindowLikeTitle("*自动登记病人信息系统*");
                    //NetAutoGUI.Window win = GUI.Application.FindWindowLikeTitle("*Slave*");
                    NetAutoGUI.Window win = GUI.Application.FindWindowLikeTitle("*微信*");
后面还有 87 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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