コード例 #1
0
 private void menu_event_operation_etdz_one_key(string pnr)
 {
     if (!loginInfo.b2b.lr.AuthorityOfCommand("etdz"))
     {
         AppendBlackWindow("无权使用\r\n>");
         return;
     }
     m_etdzonekey = new Structs.ETDZONEKEY("", "", loginInfo);
     ToCommand.EtdzOneKey dlg = new global::EagleForms.ToCommand.EtdzOneKey(m_etdzonekey, socket, commandPool);
     dlg.PNR = pnr;
     //非模式对话框:引用m_etdzonekey,commandPool,socket
     dlg.Show();
 }
コード例 #2
0
 private void menu_event_operation_etdz_one_key()
 {
     if (!loginInfo.b2b.lr.AuthorityOfCommand("etdz"))
     {
         AppendBlackWindow("无权使用\r\n>");
         return;
     }
     m_etdzonekey = new Structs.ETDZONEKEY("", "", loginInfo);
     ToCommand.EtdzOneKey dlg = new global::EagleForms.ToCommand.EtdzOneKey(m_etdzonekey, socket, commandPool);
     //非模式对话框:引用m_etdzonekey,commandPool,socket
     dlg.Show();
     //if (dlg.ShowDialog() == DialogResult.OK)
     //{
     //    m_etdzonekey = new Structs.ETDZONEKEY(dlg.PNR, dlg.PAT);
     //    string cmd = commandPool.HandleCommand("rt" + m_etdzonekey.pnr);
     //    commandPool.SetType(ETERM_COMMAND_TYPE.ETDZ_ONEKEY_RT);
     //    socket.SendCommand(cmd, 3);
     //}
 }