예제 #1
0
 //Создаем serverList из configList
 public void createServerList(ArrayList configList)
 {
     serverList.Clear();
     foreach (ConfigLine line in configList)
     {
         WTSServer server = new WTSServer(log);
         server.serverName = line.serverName;
         server.serverType = line.serverType;
         serverList.Add(server);
     }
 }
예제 #2
0
 //Функция помечающая deleted строки из allSessionList
 public void serachDeletedSession(WTSServer server)
 {
     try
     {
         foreach (UserSession session in allSessionList)
         {
             if (session.serverName == server.serverName && server.serverSessionList.Count != 0 && !server.findSession(session.userName))
             {
                 session.deleted = "deleted";
             }
         }
     }
     catch (Exception ex)
     {
         Debug.WriteLine(MethodBase.GetCurrentMethod().ReflectedType.Name + " " + MethodBase.GetCurrentMethod().Name);
         Debug.WriteLine(ex.Message);
         log.appendLog(MethodBase.GetCurrentMethod().ReflectedType.Name + "\n" + MethodBase.GetCurrentMethod().Name + "\n" + ex.Message + "\n" + Application.UserAppDataPath);
     }
 }