void UpdateModelValueImpl(UpdateModelValueCommand command) { WorkspaceModel targetWorkspace = CurrentWorkspace; if (!command.WorkspaceGuid.Equals(Guid.Empty)) { targetWorkspace = Workspaces.FirstOrDefault(w => w.Guid.Equals(command.WorkspaceGuid)); } targetWorkspace.UpdateModelValue(command.ModelGuids, command.Name, command.Value); }
private void UpdateModelValueImpl(UpdateModelValueCommand command) { WorkspaceModel targetWorkspace = CurrentWorkspace; if (!command.WorkspaceGuid.Equals(Guid.Empty)) { targetWorkspace = Workspaces.FirstOrDefault(w => w.Guid.Equals(command.WorkspaceGuid)); } try { targetWorkspace?.UpdateModelValue(command.ModelGuids, command.Name, command.Value); } catch (Exception ex) { Logger.LogError(ex.Message); } }