internal TogglePattern (IToggleProvider source, AutomationElement element, bool cached) { this.element = element; this.cached = cached; this.Source = source; currentInfo = new TogglePatternInformation (this, false); if (cached) cachedInfo = new TogglePatternInformation (this, true); }
internal TogglePattern(IToggleProvider source, AutomationElement element, bool cached) { this.element = element; this.cached = cached; this.Source = source; currentInfo = new TogglePatternInformation(this, false); if (cached) { cachedInfo = new TogglePatternInformation(this, true); } }