Exemple #1
0
 /// <summary>
 /// Constructs a CommHandler object with a predefined ICommLayer
 /// </summary>
 /// <param name="comm">ICommLayer to hook this CommHandler to</param>
 public CommHandler(ICommLayer comm)
 {
     CommLayer = comm;
     if (comm != null)
     {
         CommLayer.CommHandler += new ChatEventHandler(NotifyCore);
     }
 }
 // Implements ICommHandler
 public void Connect(string address, int port, string password)
 {
     CommLayer = new CommLayer();
     CommLayer.CommHandler += NotifyCore;
     CommLayer.Connect(address, port, password);
 }