public override Boolean Merge(Operation operation) { CursorSchemeOperation other = operation as CursorSchemeOperation; if (other == null) { return(false); } _schemes.AddRange(other._schemes); return(true); }
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); }