private void MainForm_Load(object sender, EventArgs e) { _nowTimer.Elapsed += NowTimer_Elapsed; _nowTimer.Enabled = true; _nowTimer.AutoReset = true; //每到指定时间Elapsed事件是触发一次(false),还是一直触发(true) _nowTimer.Start(); lbDoctorName.Text = ConfigHelper.LoginName.Trim(); if (ConfigHelper.IsAdmin) { btnDoctorInfos.Visible = true; } _openBlood = new Task(OpenBloodSport); _openBlood.Start(); _getTask = new Task(GetToken); _getTask.Start(); panelFill.Controls.Clear(); var pif = new PatientInfoForm(null) { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; panelFill.Controls.Add(pif); pif.Dock = DockStyle.Fill; pif.Show(); PaintImage(); }
/// <summary> /// 基本信息 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnInfo_Click(object sender, EventArgs e) { btnInfo.BackgroundImage = Properties.Resources.xinxiAfter; btnPatientInfos.BackgroundImage = Properties.Resources.jiankuang; btnEcg.BackgroundImage = Properties.Resources.xindian; btnMmhg.BackgroundImage = Properties.Resources.xueya; btnSpo2.BackgroundImage = Properties.Resources.xueyang; btnC.BackgroundImage = Properties.Resources.tiwen; btnMmol.BackgroundImage = Properties.Resources.xuetang; btnUrine.BackgroundImage = Properties.Resources.niaochanggui; btnDoctorInfos.BackgroundImage = Properties.Resources.yisheng; btnSystemInfo.BackgroundImage = Properties.Resources.xitong; panelFill.Controls.Clear(); var pif = new PatientInfoForm(null) { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; panelFill.Controls.Add(pif); pif.Dock = DockStyle.Fill; pif.Show(); }