public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { AppRibbon.UiApp = commandData.Application; AppRibbon.Uidoc = AppRibbon.UiApp.ActiveUIDocument; AppRibbon.App = AppRibbon.UiApp.Application; AppRibbon.Doc = AppRibbon.Uidoc.Document; OutLocation = OutputLocation.DEBUG; if (xm == null) { xm = new ExStoreMgr(); } return(Test01()); }
private Result Test01() { ExStoreMgr a = XsMgr; try { if (AppRibbon.Doc.IsDetached) { return(Result.Cancelled); } ExStoreRtnCodes result; // result = test01_1(); // if (result != ExStoreRtnCodes.XRC_GOOD) return Result.Failed; // info(); // result = test01_2(); // if (result != ExStoreRtnCodes.GOOD) return Result.Failed; // result = test01_3(); // if (result != ExStoreRtnCodes.GOOD) return Result.Failed; result = test01_4(); if (result != ExStoreRtnCodes.XRC_GOOD) { return(Result.Failed); } // // create sample root storage // result = ExStorageTests.MakeRootExStorage(); // if (result != ExStoreRtnCodes.GOOD) return Result.Failed; // // // create sample app and cell storage // result = ExStorageTests.MakeAppAndCellsExStorage(); // if (result != ExStoreRtnCodes.GOOD) return Result.Failed; } catch (OperationCanceledException) { return(Result.Failed); } return(Result.Succeeded); }
private void info() { ExStoreMgr x = XsMgr; ExStoreRoot xrc = XsMgr.XRoot; // SchemaDictionaryRoot xrf = xrc.Fields; SchemaDictionaryRoot xrl = xrc.Data; SchemaDictionaryRoot xrv = xrc.DefaultValues(); ExStoreApp xac = XsMgr.XApp; // SchemaDictionaryApp xaf = xac.Fields; SchemaDictionaryApp xal = xac.Data; SchemaDictionaryApp xav = xac.DefaultValues(); ExStoreCell xcc = XsMgr.XCell; SchemaDictionaryCell xcf = xcc.Fields; List <SchemaDictionaryCell> xcl = xcc.Data; Dictionary <string, string> xcd = xcc.SubSchemaFields; SchemaDictionaryCell xcv = xcc.DefaultValues(); }
public FieldsManager(AWindow w, Document doc) { this.doc = doc; W = w; scMgr = SchemaManager.Instance; exMgr = new ExStoreMgr(w, doc); dsMgr = new DataStoreManager(doc); show = new ShowInfo(w); exData = ExStorData.Instance; rData = new SchemaRootData(); rData.Configure(SchemaGuidManager.GetNewAppGuidString()); aData = new SchemaAppData(); aData.Configure("App Data Name", "App Data Description"); raData = new SchemaRootAppData(); raData.Configure("Root-App Data Name", "Root-App Data Description"); cData = new SchemaCellData(); cData.Configure("new name", "A1", UpdateRules.UR_AS_NEEDED, "cell Family", false, "xl file path", "worksheet name"); }