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);
        }
示例#2
0
        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);
        }