public SelectorResolutionFrame GetLastFrame() { if (!SelectorResolutionFrames.Any()) { return(null); } return(SelectorResolutionFrames[0]); }
//TODO support frame removal? or make selector trees freezablee so they cant be changed at runtime public void AddFrame(ElementSelectorBase selectorInstance, object resolvedValue) { SelectorResolutionFrames.Insert(0, new SelectorResolutionFrame(selectorInstance, resolvedValue)); }