Ejemplo n.º 1
0
        public void AddServerName(string sname, int port)
        {
            IRCserver ircs = new IRCserver(sname, port);

            if (!_ListServers.Contains(ircs))
            {
                _ListServers.Add(ircs);

                SavedSet.ServerListRow srow = data.ServerList.NewServerListRow();
                srow.port       = port;
                srow.servername = sname;
                data.ServerList.AddServerListRow(srow);
                data.WriteXml(Application.UserAppDataPath + "\\IRCAL.xml");
            }
        }
Ejemplo n.º 2
0
        public void AddServers(IRCserver[] ss)
        {
            foreach (IRCserver s in ss)
            {
                if (!_ListServers.Contains(s))
                {
                    _ListServers.Add(s);

                    SavedSet.ServerListRow srow = data.ServerList.NewServerListRow();
                    srow.port       = s.port;
                    srow.servername = s.servername;
                    data.ServerList.AddServerListRow(srow);
                }
            }
            data.WriteXml(Application.UserAppDataPath + "\\IRCAL.xml");
        }
Ejemplo n.º 3
0
        public void AddServerNames(string[] snames)
        {
            foreach (string s in snames)
            {
                IRCserver ircs = new IRCserver(s, 6667);
                if (!_ListServers.Contains(ircs))
                {
                    _ListServers.Add(ircs);

                    SavedSet.ServerListRow srow = data.ServerList.NewServerListRow();
                    srow.port       = 6667;
                    srow.servername = s;
                    data.ServerList.AddServerListRow(srow);
                }
            }
            data.WriteXml(Application.UserAppDataPath + "\\IRCAL.xml");
        }