public void AddNewConnection() { _logger.Info($"User pressed button for adding new S7 PLC connection. Opening the window."); S7ConnectionCreatorViewModel s7ccvm = new S7ConnectionCreatorViewModel(false, null, _realmProvider); _manager.ShowDialog(s7ccvm); ReadSavedS7Connections(); }
public void ModifyS7Connection(int identity) { S7PlcConnectionDefinition definition = _originalList.Where(x => x.Identity == identity).ToList().First(); _logger.Info($"User pressed button for opening window for modifying existing S7 PLC connections. Connection Identity: {definition.Identity}, connection ID: {definition.PLCconnectionID}."); if (definition != null) { _logger.Info($"Opening window for modifying existing S7 PLC connection."); S7ConnectionCreatorViewModel s7ccvm = new S7ConnectionCreatorViewModel(true, definition, _realmProvider); _manager.ShowDialog(s7ccvm); ReadSavedS7Connections(); } }