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(); }
public Connection CreateConnection(String servername, Int32 port, MessageForm outputWindow) { IRCConnection connection = new IRCConnection(servername, port); windows.Add(connection, outputWindow); return connection; }