SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
LabViewPanelInfo.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.Xml.Serialization;
5 
6 namespace Seci.LabView
7 {
13  public class LabViewPanelInfo
14  {
15  //Members
16  private String _filepath; //Is the VI name and filepath
17  private Boolean _showPanel; //Visible?
18  private Boolean _startRunning; //Run when loaded?
19  private int _delayAfter; //The delay in seconds after the VI is loaded.
20  private int[] _bounds; //The panel position
21  private int[] _oldBounds; //The previous panel position
22  private String _group; //VIs can be grouped together
23  private String _owningComponent; //The component to which this VI belongs.
24 
25  //Properties for serialisation
26  public String FilePath { get { return _filepath; } set { _filepath = value; } }
27  public String PanelName { get { return _filepath; } set { _filepath = value; } } //Legacy name
28  public Boolean ShowPanel { get { return _showPanel; } set { _showPanel = value; } }
29  public Boolean StartRunning { get { return _startRunning; } set { _startRunning = value; } }
30  public int DelayAfter { get { return _delayAfter; } set { _delayAfter = value; } }
31  public int[] Bounds { get { return _bounds; } set { _bounds = value; } }
32  [XmlIgnore] public int[] OldBounds { get { return _oldBounds; } set { _oldBounds = value; } }
33  public String Group { get { return _group; } set { _group = value; } }
34  public String OwningComponent { get { return _owningComponent; } set { _owningComponent = value; } }
35 
40  {
41 
42  }
43 
50  public LabViewPanelInfo(String filePath, Boolean show, Boolean start)
51  {
52  _filepath = filePath;
53  _showPanel = show;
54  _startRunning = start;
55 
56  }
57 
62  public object Clone()
63  {
64  // Only need a shallow copy of this class
65  return MemberwiseClone();
66  }
67 
68  }
69 }
LabViewPanelInfo(String filePath, Boolean show, Boolean start)
Recommended Constructor.
object Clone()
Produces a shallow copy of the class.
This class contains all the information about a LabVIEW VI that needs to be saved in the configuratio...
LabViewPanelInfo()
Default Constructor - used for deserialisation.