Exemple #1
0
 public void Connect(String nick, String servername, Int32 port)
 {
     MessageForm form = new MessageForm();
     connection = state.CreateConnection(servername, port, form);
     connection.RegisterUser(nick, "p1", "p2", "p3", "p4");
     connection.CommandArrived += new Connection.CommandArrivedDelegate(StateController_CommandArrived);
     form.Show();
 }
Exemple #2
0
 public Connection CreateConnection(String servername, Int32 port, MessageForm outputWindow)
 {
     IRCConnection connection = new IRCConnection(servername, port);
     windows.Add(connection, outputWindow);
     return connection;
 }