3 using System.Xml.Serialization;
5 namespace Seci.Definitions
37 private SerialisableList<Tab>
_tabs;
41 private Boolean _oldSeciFirstTime =
false;
43 private SerialisableList<BlockGroup>
_groups;
46 public String ConfigName {
get {
return _configName; } set { _configName = value; } }
48 public BlockDictionary Blocks {
get {
return _blocks; } set { _blocks = value; } }
49 public ComponentList Components {
get {
return _components; } set { _components = value; } }
50 public SerialisableList<AssociatedFile> AssociatedFiles {
get {
return _associatedFiles; } set { _associatedFiles = value; } }
51 public SerialisableList<Executable> Executables {
get {
return _executables; } set { _executables = value; } }
52 public Boolean SavedAsManager {
get {
return _savedAsManager; } set { _savedAsManager = value; } }
53 public SerialisableList<String> TabOrder {
get {
return _tabOrder; } set { _tabOrder = value; } }
54 public SerialisableList<Tab> Tabs {
get {
return _tabs; } set { _tabs = value; } }
55 public SerialisableList<BlockGroup> Groups {
get {
return _groups; } set { _groups = value; } }
56 public SerialisableList<GraphDefinition> GraphDefinitions {
get {
return _graphDefinitions; } set { _graphDefinitions = value; } }
57 public Tools.AlertsBox Alerts {
get {
return _alerts; } set { _alerts = value; } }
58 public Boolean OldSeciFirstTime {
get {
return _oldSeciFirstTime; } set { _oldSeciFirstTime = value; } }
69 _associatedFiles =
new SerialisableList<AssociatedFile>();
70 _executables =
new SerialisableList<Executable>();
71 _tabOrder =
new SerialisableList<String>();
72 _tabs =
new SerialisableList<Tab>();
73 _groups =
new SerialisableList<BlockGroup>();
74 _graphDefinitions =
new SerialisableList<GraphDefinition>();
85 FileStream stream =
new FileStream(fileName, FileMode.Create);
90 XmlSerializer serialize =
new XmlSerializer(typeof(
Configuration));
91 serialize.Serialize(stream,
this);
97 throw new ArgumentException(e.Message);
105 #region Merge Configs/Comps
BlockDictionary _blocks
The BlockDictionary that stores the block information for this configuration and those of any compone...
ComponentList _components
Container for the components which are part of this configuration.
A serialisable list for containing objects of type SeciConfiguration. This class wraps a standard Lis...
Configuration()
Default Constructor. This constructor is required for XML serialisation and deserialisation.
SerialisableList< LabView.LabViewPanelInfo > _lvPanels
Container for the LabVIEW VI information that needs to be saved.
This class contains all the information that defines the configuration at the SECI level and contains...
SerialisableList< BlockGroup > _groups
Container for the groups. The groups are in order.
Tools.AlertsBox _alerts
Container for any alerts that have been set-up.
SerialisableList< String > _tabOrder
Specialised version of the Dictionary class which can be converted to XML. Also has some additional s...
Boolean _savedAsManager
Was the configuration saved by the manager account?
This class contains all the information about a LabVIEW VI that needs to be saved in the configuratio...
SerialisableList< GraphDefinition > _graphDefinitions
Container for graph definitions.
void DirtySave(String fileName)
This method saves the configuration in a XML file (for use from old SECI). Can be removed when old SE...
String _configName
The name of the configuration.
SerialisableList< Executable > _executables
Container for any non-LabVIEW programmes.
SerialisableList< AssociatedFile > _associatedFiles
Container for associated file information.
SerialisableList< Tab > _tabs
Container for the tabs. The tabs are in order.