Ejemplo n.º 1
0
        /// <summary>
        /// Called when a data object is selected.
        /// </summary>
        private void OnDataObjectSelected()
        {
            if (DataObject == null || DataObject == QueryTemplateText)
            {
                return;
            }

            var template = QueryTemplates.GetTemplate(DataObject, "WITSML", Model.WitsmlVersion, Model.ReturnElementType);

            XmlQuery.SetText(template.ToString(SaveOptions.OmitDuplicateNamespaces));

            // Reset drop down list
            Runtime.InvokeAsync(() => DataObject = QueryTemplateText);
        }