Esempio n. 1
0
        public void GetDataStorage()
        {
            DataStorage ds;

            string result = dsMgr.FindDataStorage(out ds);

            if (result != null)
            {
                W.WriteLineAligned($"DataStorages found|\n", result);
            }
            else
            {
                W.WriteLineAligned($"DataStorages not found|", result);
            }

            IList <Schema> schemas = GetSchemas();

            W.WriteAligned("\n");
            W.WriteAligned($"List of schema|");

            if (schemas != null)
            {
                W.WriteLineMsg($"found| {schemas.Count}");

                foreach (Schema s in schemas)
                {
                    W.WriteLineAligned($"schema|", $"name| {s.SchemaName.PadRight(35)}  vendor id| {s.VendorId.PadRight(20)}   guid| {s.GUID.ToString()}");
                }
            }
            else
            {
                W.WriteLineAligned($"none found");
            }

            W.ShowMsg();
        }
Esempio n. 2
0
        public void ShowRootFields(SchemaRootFields rootFields)
        {
            W.WriteLineAligned("this is| ", "CSToolsDelux");
            W.WriteLineAligned("this is| ", $"{documentName}");
            W.WriteLineAligned("Show Root Fields| ", "type 1");
            W.WriteAligned("\n");

            string name;
            string value;
            string type;

            foreach (SchemaRootKey key in rootFields.KeyOrder)
            {
                name  = rootFields[key].Name;
                value = rootFields[key].ValueString;
                type  = rootFields[key].ValueType.Name;

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

            W.WriteAligned("\n");
            W.WriteLineAligned("Show Root Fields| ", "finished");
            W.WriteAligned("\n");

            W.ShowMsg();
        }