Exemplo n.º 1
0
        public static void MsgInfo(string msg)
        {
            FrmWarn m = new FrmWarn();

            m.lblMsg.Text = msg;
            m.ShowDialog();
        }
Exemplo n.º 2
0
 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         if (Settings.Default.运行模式 == "RUN" || Settings.Default.运行模式 == "TEST")
         {
             Msgvisable(this.lblMsg, true);
             PutCardUniversal pc = new PutCardUniversal();
             int i = pc.OutCard(0, 0, FrmMain.userInfo, 0);
             if (i == -1)
             {
                 throw new Exception("发卡失败!");
             }
         }
         else
         {
             Msgvisable(this.lblMsg, true);
             FrmWarn frm = new FrmWarn();
             frm.lblMsg.Text = "发卡成功!";
             frm.ShowDialog();
         }
     }catch (Exception err)
     {
         throw new Exception(err.Message);
     }
 }