Exemple #1
0
        /// <summary> Initializes the object. </summary>
        /// <remarks> Ranaya, 26/05/2017. </remarks>
        /// <param name="pObjObject"> The object object. </param>

        private void InitializeObject(IObject pObjObject)
        {
            UserObjectsMD lObjUserObject = pObjObject.GetUserObject();

            try
            {
                if (!ExistsObject(lObjUserObject.Code))
                {
                    HandleException.Object(lObjUserObject.Add());
                }
            }
            finally
            {
                MemoryUtility.ReleaseComObject(lObjUserObject);
            }
        }