private void sendCommandToServer()
        {
            BLL.tb_log        log    = new BLL.tb_log();
            List <BLL.tb_log> l_list = log.LoadlogstoSendCommandToServer();

            for (int i = 0; i < l_list.Count; i++)
            {
                SendMessage(l_list[i].msg_text.Trim(), l_list[i].logger_id);
            }
        }
示例#2
0
        private void sendCommandToServer()
        {
            BLL.tb_log        log    = new BLL.tb_log();
            List <BLL.tb_log> l_list = log.LoadlogstoSendCommandToServer();

            for (int i = 0; i < l_list.Count; i++)
            {
                SendMessage(l_list[i].msg_text.Trim());
                log.logger_id             = l_list[i].logger_id;
                log.to_command_time_stamp = DateTime.Now;
                log.isCommandSent         = true;
                log.UpdateCommandSentToServer(log);
                txtLogs.Text     += DateTime.Now + "-" + ("Message Sent to Server for Processing..." + "\r\n");
                txtLogs.ForeColor = Color.Magenta;
            }
        }