/[AnywhereTS-MSSQL]/branches/TerminalServices/TSAdminTool/TerminalServer.cs
ViewVC logotype

Diff of /branches/TerminalServices/TSAdminTool/TerminalServer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- branches/TerminalServices/TSAdminTool/TerminalServer.cs	2012/08/25 23:01:27	270
+++ branches/TerminalServices/TSAdminTool/TerminalServer.cs	2012/08/26 00:04:01	271
@@ -1,6 +1,7 @@
 using System;
 using System.Collections.Generic;
 using System.Text;
+using Cassia;
 
 namespace AnywhereTS
 {   // Represents a terminal server
@@ -9,7 +10,7 @@
         public bool Online; // true = terminal server is online, false = terminal server is offline
         public string strError; // Error string if the terminal server is offline.
         public string networkPath; // The network path to the terminal server
-        public SessionList Session = new SessionList();
+        public List<ITerminalServicesSession> Session = new List<ITerminalServicesSession>();
 
 
         // Update the terminal server and session data
@@ -18,12 +19,17 @@
             Online = false;
             try
             {
-                strError = TSManager.ListSessions(Session, networkPath);
+                TSManager.ListSessions(networkPath);
+                Session = TSManager.ListSessions(networkPath);
+                if (Session.Count > 0)
+                {
+                    // Getting sessions went ok
+                }
                 if (strError.Length == 0)
                 {   // Getting sessions went ok
                     Online = true;
                     // Sort the sessions
-                    Session.Sort();
+                    //Session.Sort();
                 }
             }
             catch

 

  ViewVC Help
Powered by ViewVC 1.1.22