internal void LoadParent(ModuleViewModel viewModel)
 {
     Load((AssemblyViewModel)viewModel.Parent);
 }
Ejemplo n.º 2
0
 public override void Unload()
 {
     _node = null;
 }
        internal void Load(ModuleViewModel viewModel)
        {
            LoadParent(viewModel);

            var projectModule = viewModel.ProjectModule;

            if (CanRenameMembers)
            {
                if (projectModule.RenameMembersChanged)
                {
                    RenameMembers = projectModule.RenameMembers;
                }

                if (projectModule.RenamePublicTypesChanged)
                {
                    RenamePublicTypes = projectModule.RenamePublicTypes;
                }

                if (projectModule.RenamePublicMethodsChanged)
                {
                    RenamePublicMethods = projectModule.RenamePublicMethods;
                }

                if (projectModule.RenamePublicFieldsChanged)
                {
                    RenamePublicFields = projectModule.RenamePublicFields;
                }

                if (projectModule.RenamePublicPropertiesChanged)
                {
                    RenamePublicProperties = projectModule.RenamePublicProperties;
                }

                if (projectModule.RenamePublicEventsChanged)
                {
                    RenamePublicEvents = projectModule.RenamePublicEvents;
                }
            }

            if (CanObfuscateControlFlow && projectModule.ObfuscateControlFlowChanged)
            {
                ObfuscateControlFlow = projectModule.ObfuscateControlFlow;
            }

            if (CanEncryptIL && projectModule.EncryptILChanged)
            {
                EncryptIL = projectModule.EncryptIL;
            }

            if (CanObfuscateStrings && projectModule.ObfuscateStringsChanged)
            {
                ObfuscateStrings = projectModule.ObfuscateStrings;
            }

            if (CanRemoveUnusedMembers && projectModule.RemoveUnusedMembersChanged)
            {
                RemoveUnusedMembers = projectModule.RemoveUnusedMembers;
            }

            if (CanSealTypes && projectModule.SealTypesChanged)
            {
                SealTypes = projectModule.SealTypes;
            }

            if (CanDevirtualizeMethods && projectModule.DevirtualizeMethodsChanged)
            {
                DevirtualizeMethods = projectModule.DevirtualizeMethods;
            }
        }
Ejemplo n.º 4
0
 public override void Load(NodeViewModel node)
 {
     _node = (ModuleViewModel)node;
 }