예제 #1
0
        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);
        }
예제 #2
0
        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);
            }
        }