2 using System.Collections.Generic;
 
    4 using Seci.Definitions;
 
    6 namespace Seci.Managers
 
   16         private static SerialisableList<Executable> _executables = 
new SerialisableList<Executable>();
 
   18         internal static SerialisableList<Executable> Executables { 
get { 
return _executables; } }
 
   20         #region Public Methods 
   29             if (IsDuplicate(fileName))
 
   55                 _executables.Add(exe);
 
   67             if (_executables != null)
 
   69                 for (
int i = 0; i < _executables.Count; ++i)
 
   71                     if (_executables[i].FilePath.ToLower() == fileName.ToLower())
 
   74                         _executables[i].Dispose();
 
   75                         _executables.RemoveAt(i);
 
   92             List<String> exes = GetListOfExes(
true);
 
   94             return exes.Contains(fileName);
 
  105             List<String> exes = 
new List<String>();
 
  107             if (_executables != null)
 
  109                 for (
int i = 0; i < _executables.Count; ++i)
 
  111                     if (includeComps || String.IsNullOrEmpty(_executables[i].OwningComponent))
 
  113                         exes.Add(_executables[i].FilePath);
 
  127             List<String> exes = 
new List<String>();
 
  129             if (_executables != null)
 
  131                 for (
int i = 0; i < _executables.Count; ++i)
 
  133                     if (!String.IsNullOrEmpty(_executables[i].OwningComponent))
 
  135                         exes.Add(_executables[i].FilePath);
 
  148         public static Boolean 
Show(String fileName)
 
  150             if (_executables != null)
 
  152                 for (
int i = 0; i < _executables.Count; ++i)
 
  154                     if (_executables[i].FilePath.ToLower() == fileName.ToLower())
 
  156                         _executables[i].Show();
 
  170         public static Boolean 
Hide(String fileName)
 
  172             if (_executables != null)
 
  174                 for (
int i = 0; i < _executables.Count; ++i)
 
  176                     if (_executables[i].FilePath.ToLower() == fileName.ToLower())
 
  178                         _executables[i].Hide();
 
  194             if (_executables != null)
 
  196                 for (
int i = 0; i < _executables.Count; ++i)
 
  198                     if (_executables[i].Name.ToLower() == name.ToLower())
 
  200                         return _executables[i].FilePath;
 
  213         internal static void CloseAll()
 
  215             for (
int i = 0; i < _executables.Count; ++i)
 
  217                 _executables[i].Dispose();
 
  219             _executables.Clear();
 
This class is used for wrapping standard executables that are included as part of a configuration...
The manager class for all things executable related 
static String GetFilePath(String name)
Retrieve the full filepath based on the name of the program. 
static Boolean Hide(String fileName)
Hide the program. 
static Boolean AddExecutable(Executable exe)
Add a non LabVIEW programme to the configuration. 
static Boolean Show(String fileName)
Display the program. 
static Boolean AddExecutable(String fileName)
Add a non LabVIEW programme to the configuration. 
static Boolean IsDuplicate(String fileName)
Checks that the program is not already part of the configuration. 
static Boolean RemoveExecutable(String fileName)
Remove a non LabVIEW programme from the configuration. 
static List< String > GetListOfExes(Boolean includeComps)
Gets a list of all the executables. Including any associated files in the components is optional...
static List< String > GetListOfComponentExes()
Gets a list of the executables in components.