public HistoryItem(string operationName, EnumerateTarget target, IWidgetEnumerator enumerator) { OperationName = operationName; Target = target; Enumerator = enumerator; window = HitaHint.UIAssistantAPI.WindowAPI.ActiveWindow; }
public static IWidgetEnumerator Factory(EnumerateTarget target) { switch (target) { case EnumerateTarget.WidgetsInWindow: return(new WidgetsInWindow()); case EnumerateTarget.RunningApps: return(new RunningApps()); case EnumerateTarget.WidgetsInTaskbar: return(new WidgetsInTaskbar()); case EnumerateTarget.DividedScreen: return(new DividedScreen()); default: return(new WidgetsInWindow()); } }
public static ISearchByTextEnumerator Factory(EnumerateTarget target) { switch (target) { case EnumerateTarget.Commands: return(new SearchForCommand()); case EnumerateTarget.TextsInWindow: return(new SearchForText()); case EnumerateTarget.TextsInContainer: return(new SearchContainer()); case EnumerateTarget.RunningApps: return(new SearchRunningApps()); case EnumerateTarget.ContextMenu: return(new SearchContextMenu()); default: return(new SearchForText()); } }
internal void ChangeTarget(EnumerateTarget target) { _enumerator = Enumerator.Factory(target); }
public void ChangeTarget(EnumerateTarget target) { State.ChangeTarget(target); }
internal void ChangeTarget(EnumerateTarget target) { Target = target; Enumerator = Enumerators.Enumerator.Factory(target); }
internal void PushState(string operationName, EnumerateTarget target, IWidgetEnumerator enumerator) { _history.Push(new HistoryItem(operationName, target, enumerator)); }