private void textBox1_Leave(object sender, EventArgs e) { if (!textBox1.ReadOnly) { textBox1.ReadOnly = true; updatedb update = new updatedb(); update.updatSC(textBox1.Text.Trim().ToUpper(), label1.Text); textBox1.BackColor = Color.FromArgb(232, 239, 246); textBox1.Text = textBox1.Text.Trim().ToUpper(); } }
/// <summary> /// 病区是否开放勾选按钮 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void panel1_Click(object sender, EventArgs e) { if (iskf == true) { panel1.BackgroundImage = (Image)DWardManage.Properties.Resources.ResourceManager.GetObject("不选"); iskf = false; updatedb update = new updatedb(); update.updatkf(iskf, label1.Text.ToString()); } else { panel1.BackgroundImage = (Image)DWardManage.Properties.Resources.ResourceManager.GetObject("勾1"); iskf = true; updatedb update = new updatedb(); update.updatkf(iskf, label1.Text.ToString()); } }