Beispiel #1
0
 public virtual void Handle(Window window)
 {
     window.WaitWhileBusy();
     if (CoreAppXmlConfiguration.Instance.WaitBasedOnHourGlass)
     {
         Clock.Do @do = () => Mouse.Instance.Cursor;
         Clock.Matched matched = delegate(object obj)
                                     {
                                         var cursor = (MouseCursor) obj;
                                         if (MouseCursor.WaitCursors.Contains(cursor))
                                         {
                                             Mouse.Instance.MoveOut();
                                             return false;
                                         }
                                         return true;
                                     };
         Clock.Expired expired =
             delegate { throw new UIActionException(string.Format("Window in still wait mode. Cursor: {0}{1}", Mouse.Instance.Cursor, Constants.BusyMessage)); };
         new Clock(CoreAppXmlConfiguration.Instance.BusyTimeout).Perform(@do, matched, expired);
     }
     CustomWait(window);
     if (types.Contains(ActionType.NewControls)) window.ReloadIfCached();
 }
Beispiel #2
0
        public virtual void Handle(Window window)
        {
            window.WaitWhileBusy();

            if (types.Contains(ActionType.NewControls)) window.ReloadIfCached();
        }