public void PLCRemove(string plcName, string ipAddress) { var plc = new PLCItem(plcName, ipAddress, mdsClient); plc.Disconnection(ApplicationName, PLCServerApplicationName); model.ListPLCItems.Remove(plc); }
public void PLCAdd(string plcName, string ipAddress) { var plc = new PLCItem(plcName, ipAddress, mdsClient); if (plc.Connection(ApplicationName, PLCServerApplicationName)) { model.ListPLCItems.Add(plc); } }
public bool Equals(PLCItem plc) { // If parameter is null return false: if (plc == null) { return(false); } // Return true if either fields match: return((Name == plc.Name && IPAddress == plc.IPAddress)); }
public void PLCDisconnect(PLCItem plc) { plc.Disconnection(ApplicationName, PLCServerApplicationName); }