Esempio n. 1
0
 public HistoryItem(string operationName, EnumerateTarget target, IWidgetEnumerator enumerator)
 {
     OperationName = operationName;
     Target        = target;
     Enumerator    = enumerator;
     window        = HitaHint.UIAssistantAPI.WindowAPI.ActiveWindow;
 }
Esempio n. 2
0
 public void Dispose()
 {
     Enumerator?.Dispose();
     InputText?.Clear();
     Session.Dispose();
     Enumerator        = null;
     EnumeratedResults = null;
 }
Esempio n. 3
0
        internal void Restore()
        {
            if (!History.CanUndo)
            {
                return;
            }
            var item = History.PopState();

            if (_api.WindowAPI.ActiveWindow != item.window)
            {
                item.window.Activate();
            }
            OperationManager.Change(item.OperationName);
            Target     = item.Target;
            Enumerator = item.Enumerator;
        }
Esempio n. 4
0
 internal void ChangeTarget(EnumerateTarget target)
 {
     Target     = target;
     Enumerator = Enumerators.Enumerator.Factory(target);
 }
Esempio n. 5
0
 internal void PushState(string operationName, EnumerateTarget target, IWidgetEnumerator enumerator)
 {
     _history.Push(new HistoryItem(operationName, target, enumerator));
 }