Example #1
0
        public void ShowAppData(SchemaAppFields fields,
                                SchemaAppData data)
        {
            W.WriteLineAligned("this is| ", "CSToolsDelux");
            W.WriteLineAligned("this is| ", $"{documentName}");
            W.WriteLineAligned("Show App data| ", "type 1");
            W.WriteAligned("\n");

            string name;
            string type;
            string value;

            foreach (SchemaAppKey key in fields.KeyOrder)
            {
                name  = data[key].FieldDef.Name;
                value = data[key].ValueString;
                type  = data[key].ValueType.Name;

                W.WriteLineAligned($"key| {key}| ", formatFieldInfo(name, type, value));
            }

            W.WriteAligned("\n");
            W.WriteLineAligned("Show App data| ", "finished");
            W.WriteAligned("\n");

            W.ShowMsg();
        }
Example #2
0
        public FieldsManager(AWindow w)
        {
            W    = w;
            show = new ShowInfo(w);

            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");
            cData.Configure("Another new name", "B2", UpdateRules.UR_AS_NEEDED, "second cell Family", false, "second xl file path", "second worksheet name");
        }
Example #3
0
        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");
        }