//自助挂号 private void lblguahao_Click(object sender, EventArgs e) { string cardtype = SkyComm.getvalue("读卡器类型"); if (cardtype == "302H") { FrmInCard302H fi = new FrmInCard302H(); if (fi.ShowDialog() == DialogResult.OK) { backgroundWorker1.RunWorkerAsync("挂号"); } else { return; } } else if (cardtype == "M100") { FrmInCardM100 fi = new FrmInCardM100(); if (fi.ShowDialog() == DialogResult.OK) { backgroundWorker1.RunWorkerAsync("挂号"); } else { return; } } else { FrmInCardUniversal fi = new FrmInCardUniversal(); if (fi.ShowDialog() == DialogResult.OK) { backgroundWorker1.RunWorkerAsync("挂号"); } else { return; } } }
private void label1_Click(object sender, EventArgs e) { string cardtype = SkyComm.getvalue("读卡器类型"); if (cardtype == "302H") { FrmInCard302H fi = new FrmInCard302H(); if (fi.ShowDialog() == DialogResult.OK) { //backgroundWorker1.RunWorkerAsync("完成"); } else { return; } } else if (cardtype == "M100") { FrmInCardM100 fi = new FrmInCardM100(); if (fi.ShowDialog() == DialogResult.OK) { ////backgroundWorker1.RunWorkerAsync("完成"); } else { return; } } else { FrmInCardUniversal fi = new FrmInCardUniversal(); if (fi.ShowDialog() == DialogResult.OK) { //backgroundWorker1.RunWorkerAsync("完成"); } else { return; } } cxenable = 0; label1.Enabled = false; try { Process p = Process.Start(Application.StartupPath + @"\\Feelmanager.exe", FrmMain.cardInfoStruct.CardNo); //SoundPlayer soundPlayer = new SoundPlayer(Application.StartupPath + @"\\Sound\\医卡通.wav"); //soundPlayer.Play(); //p.WaitForExit(); } catch (Exception ex) { MessageBox.Show(ex.Message); } //Process p = Process.Start(Application.StartupPath + @"\\Feelmanager.exe"); //SoundPlayer soundPlayer = new SoundPlayer(Application.StartupPath + @"\\Sound\\医卡通.wav"); //soundPlayer.Play(); //p.WaitForExit(); //label1.Enabled = true; //string cardtype = SkyComm.getvalue("读卡器类型"); //if (cardtype == "302H") //{ // FrmInCard302H fi = new FrmInCard302H(); // if (fi.ShowDialog() == DialogResult.OK) // { // backgroundWorker1.RunWorkerAsync("充值"); // } //} //else if (cardtype == "M100") //{ // FrmInCardM100 fi = new FrmInCardM100(); // if (fi.ShowDialog() == DialogResult.OK) // { // backgroundWorker1.RunWorkerAsync("充值"); // } //} //else //{ // FrmInCardUniversal fi = new FrmInCardUniversal(); // if (fi.ShowDialog() == DialogResult.OK) // { // backgroundWorker1.RunWorkerAsync("充值"); // } //} }