internal SelectionPattern (ISelectionPattern source, AutomationElement element, bool cached) { this.element = element; this.cached = cached; this.Source = source; currentInfo = new SelectionPatternInformation (this, false); if (cached) cachedInfo = new SelectionPatternInformation (this, true); }
internal SelectionPattern(ISelectionPattern source, AutomationElement element, bool cached) { this.element = element; this.cached = cached; this.Source = source; currentInfo = new SelectionPatternInformation(this, false); if (cached) { cachedInfo = new SelectionPatternInformation(this, true); } }