Ejemplo n.º 1
0
        public ExStoreRtnCodes CreateDataStorage(string docKey)
        {
            Transaction     T;
            ExStoreRtnCodes result;

            using (T = new Transaction(AppRibbon.Doc, "fields"))
            {
                T.Start();
                result = dsMgr.CreateDataStorage(docKey);

                if (result != ExStoreRtnCodes.XRC_GOOD)
                {
                    return(ExStoreRtnCodes.XRC_FAIL);
                }

                T.Commit();
            }

            return(result);
        }