Exemplo n.º 1
0
        Type GetActionTypeByElementActionName(eButtonAction dropDownElementAction)
        {
            Type currentType = null;

            switch (dropDownElementAction)
            {
            case eButtonAction.Click:
            case eButtonAction.GetValue:
            case eButtonAction.IsDisabled:
            case eButtonAction.GetFont:
            case eButtonAction.IsDisplayed:
            case eButtonAction.GetWidth:
            case eButtonAction.GetHeight:
            case eButtonAction.GetStyle:
                currentType = typeof(ActUIElement);
                break;
            }
            return(currentType);
        }
Exemplo n.º 2
0
        Type GetActionTypeByElementActionName(eButtonAction dropDownElementAction)
        {
            Type currentType = null;

            switch (dropDownElementAction)
            {
            case eButtonAction.GetValue:
            case eButtonAction.IsDisabled:
            case eButtonAction.GetFont:
            case eButtonAction.IsDisplayed:
            case eButtonAction.GetWidth:
            case eButtonAction.GetHeight:
            case eButtonAction.GetStyle:
                currentType = typeof(ActUIElement);
                break;
                //default:
                //    throw new Exception("Converter error, missing Action translator for - " + dropDownElementAction);
            }
            return(currentType);
        }