コード例 #1
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            ModelObject = null;
            Solution    = null;
            if (_propertyInstanceList != null)
            {
                foreach (PropertyInstance item in PropertyInstanceList)
                {
                    item.Dispose();
                }
                PropertyInstanceList.Clear();
                PropertyInstanceList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #2
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method assigns a value to a property, and updates corresponding
        /// forward and reverse engineering data.</summary>
        ///
        /// <param name="propertyName">The property name.</param>
        /// <param name="propertyValue">The property value.</param>
        ///--------------------------------------------------------------------------------
        public virtual bool AssignProperty(string propertyName, object propertyValue)
        {
            if (this.SetPropertyValue(propertyName, propertyValue) == true)
            {
                if (ReverseInstance == null)
                {
                    ReverseInstance = new IdentifierType();
                    ReverseInstance.TransformDataFromObject(this, null, false);
                }
                else
                {
                    ReverseInstance.SetPropertyValue(propertyName, propertyValue);
                }
                if (ForwardInstance != null)
                {
                    this.TransformDataFromObject(ForwardInstance, null, false, true);
                }
            }
            else
            {
                return(false);
            }

            #region protected
            #endregion protected

            return(true);
        }
コード例 #3
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Entity   = null;
            Solution = null;
            if (_stateList != null)
            {
                foreach (State item in StateList)
                {
                    item.Dispose();
                }
                StateList.Clear();
                StateList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #4
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Solution = null;
            Solution = null;
            if (_viewPropertyList != null)
            {
                foreach (ViewProperty item in ViewPropertyList)
                {
                    item.Dispose();
                }
                ViewPropertyList.Clear();
                ViewPropertyList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #5
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Solution = null;
            Solution = null;
            if (_diagramEntityList != null)
            {
                foreach (DiagramEntity item in DiagramEntityList)
                {
                    item.Dispose();
                }
                DiagramEntityList.Clear();
                DiagramEntityList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #6
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Enumeration = null;
            Solution    = null;
            if (_definedByModelPropertyList != null)
            {
                foreach (ModelProperty item in DefinedByModelPropertyList)
                {
                    item.Dispose();
                }
                DefinedByModelPropertyList.Clear();
                DefinedByModelPropertyList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #7
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Solution = null;

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #8
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Solution = null;
            Solution = null;
            if (_enumerationList != null)
            {
                foreach (Enumeration item in EnumerationList)
                {
                    item.Dispose();
                }
                EnumerationList.Clear();
                EnumerationList = null;
            }
            if (_modelObjectList != null)
            {
                foreach (ModelObject item in ModelObjectList)
                {
                    item.Dispose();
                }
                ModelObjectList.Clear();
                ModelObjectList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #9
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Solution = null;
            Solution = null;
            if (_referencedParameterList != null)
            {
                foreach (Parameter item in ReferencedParameterList)
                {
                    item.Dispose();
                }
                ReferencedParameterList.Clear();
                ReferencedParameterList = null;
            }
            if (_propertyRelationshipList != null)
            {
                foreach (PropertyRelationship item in PropertyRelationshipList)
                {
                    item.Dispose();
                }
                PropertyRelationshipList.Clear();
                PropertyRelationshipList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #10
0
ファイル: Step_G.cs プロジェクト: jmptrader/modelorientedplus
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Stage    = null;
            Solution = null;
            if (_fromStepTransitionList != null)
            {
                foreach (StepTransition item in FromStepTransitionList)
                {
                    item.Dispose();
                }
                FromStepTransitionList.Clear();
                FromStepTransitionList = null;
            }
            if (_toStepTransitionList != null)
            {
                foreach (StepTransition item in ToStepTransitionList)
                {
                    item.Dispose();
                }
                ToStepTransitionList.Clear();
                ToStepTransitionList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }
コード例 #11
0
        ///--------------------------------------------------------------------------------
        /// <summary>This method disposes of resources in the model.</summary>
        ///--------------------------------------------------------------------------------
        protected override void OnDispose()
        {
            if (ReverseInstance != null)
            {
                ReverseInstance.Dispose();
                ReverseInstance = null;
            }
            if (ForwardInstance != null)
            {
                ForwardInstance.Dispose();
                ForwardInstance = null;
            }
            Solution = null;
            if (_propertyList != null)
            {
                foreach (Property item in PropertyList)
                {
                    item.Dispose();
                }
                PropertyList.Clear();
                PropertyList = null;
            }
            if (_auditPropertyList != null)
            {
                foreach (AuditProperty item in AuditPropertyList)
                {
                    item.Dispose();
                }
                AuditPropertyList.Clear();
                AuditPropertyList = null;
            }

            #region protected
            #endregion protected

            base.OnDispose();
        }