Example #1
0
        public override Boolean Merge(Operation operation)
        {
            CursorSchemeOperation other = operation as CursorSchemeOperation;

            if (other == null)
            {
                return(false);
            }

            _schemes.AddRange(other._schemes);

            return(true);
        }
Example #2
0
        private void Backup(Group backupGroup)
        {
            if (backupGroup == null)
            {
                return;
            }

            // save the current scheme config
            RegistryKey currentCursorsKey = Registry.CurrentUser.OpenSubKey(@"Control Panel\Cursors", false);

            CursorScheme currentScheme = new CursorScheme(currentCursorsKey);

            CursorSchemeOperation op = new CursorSchemeOperation(backupGroup);

            op._schemes.Add(currentScheme);

            backupGroup.Operations.Add(op);
        }