Пример #1
0
        internal static ArrayList GetServers(SsbServerLocation loc)
        {
            ArrayList retServers = new ArrayList();
            ArrayList al         = new ArrayList();

            switch (loc)
            {
            case SsbServerLocation.Local:
                GetLocalServers(ref al);
                break;

            case SsbServerLocation.Network:
                GetNetWorkedServers(ref al);
                break;
            }

            IEnumerator en = al.GetEnumerator();

            while (en.MoveNext())
            {
                retServers.Add(new SSBIServer(en.Current.ToString()));
            }

            return(retServers);
        }
Пример #2
0
        internal static ArrayList GetServers(SsbServerLocation loc)
        {
            ArrayList retServers = new ArrayList();
              ArrayList al = new ArrayList();

              switch (loc) {

            case SsbServerLocation.Local:
              GetLocalServers(ref al);
              break;

            case SsbServerLocation.Network:
              GetNetWorkedServers(ref al);
              break;
              }

              IEnumerator en = al.GetEnumerator();
              while (en.MoveNext()) {
            retServers.Add(new SSBIServer(en.Current.ToString()));
              }

              return retServers;
        }