Exemplo n.º 1
0
        public bool SelectValue(string match)
        {
            try
            {
                var task = Selection.SearchListObjectForAsync("/qListObjectDef", match)
                           .ContinueWith(t => Selection.GetLayoutAsync())
                           .Unwrap()
                           .ContinueWith(t => Selection.AcceptListObjectSearchAsync("/qListObjectDef", false))
                           .Unwrap();

                task.Wait();
                return(true);
            }
            catch (Exception ex)
            {
                logger.Error(ex);
                return(false);
            }
        }