Imports Leadtools.Ccow.Server
Imports Leadtools.Ccow.Server.Data
<TestMethod()> _
Public Function GetCcowApplicationsNames() As List(Of String)
Dim applicationsNames As New List(Of String)()
' Get the CCOW server database
Using db As Database = Utils.GetDatabase()
' Add the applications names
For Each app As CCOWApplication In db.CCOWApplication
applicationsNames.Add(app.Name)
Next
End Using
Return applicationsNames
End Function
using Leadtools.Ccow.Server;
using Leadtools.Ccow.Server.Data;
[TestMethod]
public List<string> GetCcowApplicationsNames()
{
List<string> applicationsNames = new List<string>();
// Get the CCOW server database
using (Database db = Utils.GetDatabase())
{
// Add the applications names
foreach (CCOWApplication app in db.CCOWApplication)
{
applicationsNames.Add(app.Name);
}
}
return applicationsNames;
}