Ejemplo n.º 1
0
 protected EffectModuleInstanceBase()
 {
     TargetNodes      = new ElementNode[0];
     TimeSpan         = TimeSpan.Zero;
     IsDirty          = true;
     _parameterValues = new DefaultValueArrayMember(this);
     _elementIntents  = new ElementIntents();
 }
Ejemplo n.º 2
0
 protected EffectModuleInstanceBase()
 {
     _targetNodes     = new ElementNode[0];         //set member directly on creation to prevent target node changed events from occuring.
     TimeSpan         = TimeSpan.Zero;
     IsDirty          = true;
     _parameterValues = new DefaultValueArrayMember(this);
     _elementIntents  = new ElementIntents();
 }
Ejemplo n.º 3
0
        /// <inheritdoc />
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (SupportsMarks && _markCollections != null)
                {
                    _markCollections.CollectionChanged -= _markCollections_CollectionChanged;
                }

                _parameterValues = null;
                _markCollections = null;
                var md = ModuleData.ModuleDataSet as ModuleDataSet;
                md?.Dispose();
            }

            base.Dispose(disposing);
        }