internal WindowPattern (IWindowPattern source, AutomationElement element, bool cached) { this.element = element; this.cached = cached; this.Source = source; currentInfo = new WindowPatternInformation (this, false); if (cached) cachedInfo = new WindowPatternInformation (this, true); }
internal WindowPattern(IWindowPattern source, AutomationElement element, bool cached) { this.element = element; this.cached = cached; this.Source = source; currentInfo = new WindowPatternInformation(this, false); if (cached) { cachedInfo = new WindowPatternInformation(this, true); } }