public bool Validate(string dataSourceString, DataSourceProvideArgs args)
        {
            if (args == null || args.WindowEntity == null)
            {
                Debug.Assert(false, "args.WindowEntity 为空");
                return(false);
            }
            WindowEntity window = args.WindowEntity;

            return(window.FindFormElementById(dataSourceString) != null);
        }
        public string GetDisplayString(string dataSourceString, DataSourceProvideArgs args)
        {
            if (args == null || args.WindowEntity == null)
            {
                Debug.Assert(false, "args.WindowEntity 为空");
                return(String.Empty);
            }
            WindowEntity window  = args.WindowEntity;
            UIElement    element = window.FindFormElementById(dataSourceString);

            if (element != null)
            {
                return(_language.UIElementDataSoureDisplayString + " " + element.FullName);
            }
            else
            {
                return(String.Empty);
            }
        }