void SetWorkSpaceToStateImpl(ApplyPresetCommand command) { var workspaceToSet = this.Workspaces.Where(x => x.Guid == command.WorkSpaceID).First(); if (workspaceToSet == null) { return; } var state = workspaceToSet.Presets.Where(x => x.GUID == command.StateID).FirstOrDefault(); workspaceToSet.ApplyPreset(state); }
void SetWorkSpaceToStateImpl(ApplyPresetCommand command) { var workspaceToSet = this.Workspaces.Where(x => x.Guid == command.WorkSpaceID).First(); if (workspaceToSet == null) { return; } var state = workspaceToSet.Presets.Where(x => x.GUID == command.StateID).FirstOrDefault(); workspaceToSet.ApplyPreset (state); }