예제 #1
0
        private void MakeLastItemReadyForPerformingAction()
        {
            ListItem lastItem = Item(Count - 1);

            if (lastItem.Bounds.IsZeroSize() || string.IsNullOrEmpty(lastItem.Text))
            {
                actionListener.ActionPerforming(lastItem);
            }
        }
 public virtual void DoubleClickOutsideToolTip(UIItem uiItem, ActionListener actionListener)
 {
     actionListener.ActionPerforming(uiItem);
     ToolTip toolTip = GetToolTip(uiItem, actionListener);
     if (toolTip == null)
         mouse.DoubleClick(uiItem.Bounds.Center(), actionListener);
     else
     {
         WhiteLogger.Instance.Debug("Found tooltip DoubleClicking outside tooltip bounds");
         mouse.DoubleClick(toolTip.LeftOutside(uiItem.Bounds), actionListener);
     }
 }
예제 #3
0
 public virtual void ClickOutsideToolTip(UIItem uiItem, ActionListener actionListener)
 {
     actionListener.ActionPerforming(uiItem);
     ToolTip toolTip = GetToolTip(uiItem, actionListener);
     if (toolTip == null)
         mouse.Click(uiItem.Bounds.Center(), actionListener);
     else
     {
         logger.Debug("Found tooltip Clicking outside tooltip bounds");
         mouse.Click(toolTip.LeftOutside(uiItem.Bounds), actionListener);
     }
 }
 public virtual void RightClickOutsideToolTip(UIItem uiItem, ActionListener actionListener)
 {
     actionListener.ActionPerforming(uiItem);
     ToolTip toolTip = GetToolTip(uiItem, actionListener);
     if (toolTip == null)
     {
         //Because mouse has already been moved
         mouse.RightClickHere(actionListener);
     }
     else
     {
         WhiteLogger.Instance.Debug("Found tooltip RightClicking outside tooltip bounds");
         mouse.RightClick(toolTip.LeftOutside(uiItem.Bounds), actionListener);
     }
 }
        public virtual void DoubleClickOutsideToolTip(UIItem uiItem, ActionListener actionListener)
        {
            actionListener.ActionPerforming(uiItem);
            ToolTip toolTip = GetToolTip(uiItem, actionListener);

            if (toolTip == null)
            {
                mouse.DoubleClick(uiItem.Bounds.Center(), actionListener);
            }
            else
            {
                WhiteLogger.Instance.Debug("Found tooltip DoubleClicking outside tooltip bounds");
                mouse.DoubleClick(toolTip.LeftOutside(uiItem.Bounds), actionListener);
            }
        }
예제 #6
0
 public virtual void RightClickOutsideToolTip(UIItem uiItem, ActionListener actionListener)
 {
     actionListener.ActionPerforming(uiItem);
     ToolTip toolTip = GetToolTip(uiItem, actionListener);
     if (toolTip == null)
     {
         //Because mouse has already been moved
         mouse.RightClickHere(actionListener);
     }
     else
     {
         logger.Debug("Found tooltip RightClicking outside tooltip bounds");
         mouse.RightClick(toolTip.LeftOutside(uiItem.Bounds), actionListener);
     }
 }
예제 #7
0
파일: UIItem.cs 프로젝트: yonglehou/White
 public virtual void RightClickAt(Point point)
 {
     actionListener.ActionPerforming(this);
     mouse.RightClick(point, actionListener);
 }