/// <summary>
 /// returning instance of singleton client class, or creating one if does'nt exist
 /// </summary>
 /// <returns></returns>
 public static TcpClientChannel getInstance()
 {
     if (instance == null)
     {
         instance = new TcpClientChannel();
     }
     return(instance);
 }
 /// <summary>
 /// a singleton for the tcpClientChannel.
 /// </summary>
 /// <returns></returns>
 public static TcpClientChannel GetInstance()
 {
     if (myInstance == null)
     {
         if (connected == false)
         {
             myInstance = new TcpClientChannel();
         }
     }
     return(myInstance);
 }