private void FillFolderSource(string controlName)
        {
            var control = ConfigurationControls.FindByNameNested <DropDownList>(controlName);

            if (control != null)
            {
                var conf = DocuSignManager.SetUp(AuthorizationToken);
                control.ListItems = DocuSignFolders.GetFolders(conf)
                                    .Select(x => new ListItem()
                {
                    Key = x.Key, Value = x.Value
                })
                                    .ToList();
            }
        }
Esempio n. 2
0
        public ControlDefinitionDTO CreateFolderDropDownListControl(string key, AuthorizationToken authToken)
        {
            var conf = _docuSignManager.SetUp(AuthorizationToken);

            return(new DropDownList()
            {
                Name = "QueryField_" + key,
                ListItems = DocuSignFolders.GetFolders(conf)
                            .Select(x => new ListItem()
                {
                    Key = x.Key, Value = x.Value
                })
                            .ToList()
            });
        }