Ejemplo n.º 1
0
        public WpfEntry(WpfTraceInfo info, string description, StringCache stringCache)
        {
            this.stringCache = stringCache;
            this.Info        = info;
            this.Count       = 1;

            this.SourceProperty     = string.Empty;
            this.SourcePropertyType = string.Empty;
            this.SourcePropertyName = string.Empty;
            this.BindingPath        = string.Empty;
            this.DataItemType       = string.Empty;
            this.DataItemName       = string.Empty;
            this.DataValue          = string.Empty;
            this.TargetElementType  = string.Empty;
            this.TargetElementName  = string.Empty;
            this.TargetProperty     = string.Empty;
            this.TargetPropertyType = string.Empty;
            this.Description        = stringCache.Get(description);
        }
Ejemplo n.º 2
0
        public WpfEntry(WpfTraceInfo info, Match match, StringCache stringCache)
        {
            this.stringCache = stringCache;
            this.Info        = info;
            this.Count       = 1;

            this.SourceProperty     = stringCache.Get(match.Groups[nameof(this.SourceProperty)].Value);
            this.SourcePropertyType = stringCache.Get(match.Groups[nameof(this.SourcePropertyType)].Value);
            this.SourcePropertyName = stringCache.Get(match.Groups[nameof(this.SourcePropertyName)].Value);
            this.BindingPath        = stringCache.Get(match.Groups[nameof(this.BindingPath)].Value);
            this.DataItemType       = stringCache.Get(match.Groups[nameof(this.DataItemType)].Value);
            this.DataItemName       = stringCache.Get(match.Groups[nameof(this.DataItemName)].Value);
            this.DataValue          = stringCache.Get(match.Groups[nameof(this.DataValue)].Value);
            this.TargetElementType  = stringCache.Get(match.Groups[nameof(this.TargetElementType)].Value);
            this.TargetElementName  = stringCache.Get(match.Groups[nameof(this.TargetElementName)].Value);
            this.TargetProperty     = stringCache.Get(match.Groups[nameof(this.TargetProperty)].Value);
            this.TargetPropertyType = stringCache.Get(match.Groups[nameof(this.TargetPropertyType)].Value);
            this.Description        = stringCache.Get(this.CreateDescription(match));
        }