Exemplo n.º 1
0
        public void Remove()
        {
            for (int i = editedEvents.Length - 1; i >= 0; i--)
            {
                editedEvents[i].Remove();
            }
            for (int i = editedProperties.Length - 1; i >= 0; i--)
            {
                editedProperties[i].Remove();
            }
            for (int i = editedMethods.Length - 1; i >= 0; i--)
            {
                editedMethods[i].Remove();
            }
            for (int i = editedFields.Length - 1; i >= 0; i--)
            {
                editedFields[i].Remove();
            }
            for (int i = properties.Length - 1; i >= 0; i--)
            {
                properties[i].Remove();
            }
            for (int i = events.Length - 1; i >= 0; i--)
            {
                events[i].Remove();
            }
            for (int i = methods.Length - 1; i >= 0; i--)
            {
                methods[i].Remove();
            }
            for (int i = fields.Length - 1; i >= 0; i--)
            {
                fields[i].Remove();
            }
            for (int i = nestedTypes2.Length - 1; i >= 0; i--)
            {
                nestedTypes2[i].Remove();
            }
            for (int i = nestedTypes1.Length - 1; i >= 0; i--)
            {
                nestedTypes1[i].Remove();
            }
            for (int i = deletedEvents.Length - 1; i >= 0; i--)
            {
                deletedEvents[i].Remove();
            }
            for (int i = deletedProperties.Length - 1; i >= 0; i--)
            {
                deletedProperties[i].Remove();
            }
            for (int i = deletedMethods.Length - 1; i >= 0; i--)
            {
                deletedMethods[i].Remove();
            }
            for (int i = deletedFields.Length - 1; i >= 0; i--)
            {
                deletedFields[i].Remove();
            }
            for (int i = deletedTypes.Length - 1; i >= 0; i--)
            {
                deletedTypes[i].Remove();
            }
            origTypeDefOptions.CopyTo(targetType, ownerModule);

            typeNode.TreeNode.RefreshUI();
            TypeDefSettingsCommand.InvalidateBaseTypeFolderNode(typeNode);
        }
Exemplo n.º 2
0
        public void Add()
        {
            newTypeDefOptions.CopyTo(targetType, ownerModule);
            for (int i = 0; i < deletedTypes.Length; i++)
            {
                deletedTypes[i].Add();
            }
            for (int i = 0; i < deletedFields.Length; i++)
            {
                deletedFields[i].Add();
            }
            for (int i = 0; i < deletedMethods.Length; i++)
            {
                deletedMethods[i].Add();
            }
            for (int i = 0; i < deletedProperties.Length; i++)
            {
                deletedProperties[i].Add();
            }
            for (int i = 0; i < deletedEvents.Length; i++)
            {
                deletedEvents[i].Add();
            }
            for (int i = 0; i < nestedTypes1.Length; i++)
            {
                nestedTypes1[i].Add();
            }
            for (int i = 0; i < nestedTypes2.Length; i++)
            {
                nestedTypes2[i].Add();
            }
            for (int i = 0; i < fields.Length; i++)
            {
                fields[i].Add();
            }
            for (int i = 0; i < methods.Length; i++)
            {
                methods[i].Add();
            }
            for (int i = 0; i < events.Length; i++)
            {
                events[i].Add();
            }
            for (int i = 0; i < properties.Length; i++)
            {
                properties[i].Add();
            }
            for (int i = 0; i < editedFields.Length; i++)
            {
                editedFields[i].Add();
            }
            for (int i = 0; i < editedMethods.Length; i++)
            {
                editedMethods[i].Add();
            }
            for (int i = 0; i < editedProperties.Length; i++)
            {
                editedProperties[i].Add();
            }
            for (int i = 0; i < editedEvents.Length; i++)
            {
                editedEvents[i].Add();
            }

            typeNode.TreeNode.RefreshUI();
            TypeDefSettingsCommand.InvalidateBaseTypeFolderNode(typeNode);
        }