Example #1
0
 private bool connect(ref ExtregClient erc, string ipaddr, ref string message)
 {
     if (!erc.connect(ipaddr, ref message))
     {
         return(false);
     }
     if (erc.recvAnswer(ref message))
     {
         return(true);
     }
     return(false);
 }
Example #2
0
        private bool RunCommand(ref ExtregClient erc, ref Paragraph myparagraph, string command)
        {
            List <string> answerList;

            if (erc.RunCommand(command, out answerList))
            {
                foreach (string line in answerList)
                {
                    myparagraph.Inlines.Add(line + "\n");
                }
            }

            return(true);
        }