Beispiel #1
0
        internal void Add(ServerLog log)
        {
            bool isMainChanged;

            if (serverSet == null)
            {
                serverSet     = new ServerSet(log);
                isMainChanged = true;
            }
            else
            {
                serverSet.Add(log, out isMainChanged);
            }
            if (isMainChanged)
            {
                onServerChange(serverSet);
            }
        }
Beispiel #2
0
 internal void Add(Log log, bool isLoaded)
 {
     if (serverSet == null)
     {
         serverSet = new ServerSet(log);
     }
     else if (serverSet.Server == null)
     {
         serverSet.Server = log;
     }
     else
     {
         serverSet.Add(log);
     }
     if (isLoaded)
     {
         onServerChange(serverSet);
     }
 }