Пример #1
0
        public void Execute(Server context, string server, string port)
        {
            var args = new ConnectionArgs(Settings.Default.FirstNick, server, false);
            try
            {
                args.Port = int.Parse(port);
            }
            catch (Exception)
            {
                args.Port = 6667;
            }

            context.ChangeServer(args);
            context.Connect();
        }
Пример #2
0
 /// <summary>
 /// Connect to a server in the same window
 /// </summary>
 public void Execute(Server context, string server)
 {
     context.ChangeServer(Settings.Default.FirstNick, server, false);
     context.Connect();
 }