public void Init()
        {
            FdoConnectionManager connMgr = ServiceManager.Instance.GetService <FdoConnectionManager>();
            FdoConnection        conn    = connMgr.GetConnection(_connName);

            ICapability cap = conn.Capability;

            CapabilityType[]       capTypes = (CapabilityType[])Enum.GetValues(typeof(CapabilityType));
            List <CapabilityEntry> ents     = new List <CapabilityEntry>();

            foreach (CapabilityType ct in capTypes)
            {
                Type t = cap.GetCapabilityValueType(ct);
                if (t != null)
                {
                    CapabilityEntry ent = new CapabilityEntry();
                    ent.Name = ct.ToString();
                    ent.Type = t.ToString();

                    object value = cap.GetObjectCapability(ct);
                    if (t == typeof(Array))
                    {
                        ent.Value = GetArrayValues((Array)value);
                    }
                    else if (t == typeof(FunctionDefinitionCollection))
                    {
                        ent.Value = GetFunctions((FunctionDefinitionCollection)value);
                    }
                    else
                    {
                        ent.Value = value.ToString();
                    }
                    ents.Add(ent);
                }
            }

            _view.Capabilities = ents.ToArray();
        }
        public void Init()
        {
            FdoConnectionManager connMgr = ServiceManager.Instance.GetService<FdoConnectionManager>();
            FdoConnection conn = connMgr.GetConnection(_connName);

            ICapability cap = conn.Capability;
            CapabilityType[] capTypes = (CapabilityType[])Enum.GetValues(typeof(CapabilityType));
            List<CapabilityEntry> ents = new List<CapabilityEntry>();

            foreach (CapabilityType ct in capTypes)
            {
                Type t = cap.GetCapabilityValueType(ct);
                if (t != null)
                {
                    CapabilityEntry ent = new CapabilityEntry();
                    ent.Name = ct.ToString();
                    ent.Type = t.ToString();

                    object value = cap.GetObjectCapability(ct);
                    if (t == typeof(Array))
                        ent.Value = GetArrayValues((Array)value);
                    else if (t == typeof(FunctionDefinitionCollection))
                        ent.Value = GetFunctions((FunctionDefinitionCollection)value);
                    else
                        ent.Value = value.ToString();
                    ents.Add(ent);
                }
            }

            _view.Capabilities = ents.ToArray();
        }