Example #1
0
 public AddDevice(FrontEndMainStation _MainStation)
 {
     mainstation = _MainStation;
     InitializeComponent();
 }
Example #2
0
 public static void AddMainStation(FrontEndMainStation _FrontEndMainStation)
 {
     if (!programmabledevices.Contains(_FrontEndMainStation))
         programmabledevices.Add(_FrontEndMainStation);
 }
Example #3
0
        public void Load(System.Xml.Linq.XElement _Data)
        {
            Sequence.Load(_Data.Element("Sequence"));
            Name = _Data.Attribute("Name").Value;
            try
            {
                IPAddress = IPAddress.Parse(_Data.Attribute("IPAddress").Value);
                Port = ushort.Parse(_Data.Attribute("Port").Value);
                Reconnect();
            }
            catch { }

            foreach (XElement element in _Data.Elements("MainStation"))
            {
                FrontEndMainStation ms = new FrontEndMainStation();
                ms.Load(element);
                mainstations.Add(ms);
            }

            foreach (XElement element in _Data.Elements("WebInterface"))
            {
                FrontEndWebInterface wi = new FrontEndWebInterface(element);
                webinterfaces.Add(wi);
            }
        }
 public EditMainStationDialog(FrontEndMainStation _MainStation)
 {
     mainstation = _MainStation;
     InitializeComponent();
 }