本文整理汇总了C#中ActionType.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# ActionType.Equals方法的具体用法?C# ActionType.Equals怎么用?C# ActionType.Equals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ActionType
的用法示例。
在下文中一共展示了ActionType.Equals方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PerformAction
public static void PerformAction(ActionElementType actionElementType, string xPath, string value = "", ActionType actionType = ActionType.SET)
{
switch (actionElementType)
{
case ActionElementType.INPUT:
{
if (actionType.Equals(ActionType.GET))
{
value = InputGetHelper(xPath);
}
if (actionType.Equals(ActionType.SET))
{
InputSetHelper(xPath, value);
}
if (actionType.Equals(ActionType.CLEAR))
{
InputClearHelper(xPath);
}
break;
}
case ActionElementType.INPUT_FILE:
{
InputFileHelper(xPath, value);
break;
}
case ActionElementType.TABLE_CELL_LINK:
{
TableCellLinkHelper(xPath);
break;
}
case ActionElementType.CHECKBOX:
{
CheckboxHelper(xPath);
break;
}
case ActionElementType.DROPDOWNLIST:
{
DropdownHelper(xPath, value);
break;
}
case ActionElementType.BUTTON:
case ActionElementType.LINK:
{
ButtonHelper(xPath);
break;
}
case ActionElementType.FORM:
{
FormHelper(xPath);
break;
}
case ActionElementType.HIDDEN_INPUT_FILE:
{
HiddenInputFileHelper(xPath, value);
break;
}
}
}
示例2: UpdateUIForAction
private void UpdateUIForAction(ActionType action)
{
if (action.Equals(ActionType.Details))
{
NamePanel.Visibility = Visibility.Collapsed;
PicAndNamePanel.Visibility = Visibility.Visible;
}
else if (action.Equals(ActionType.Add))
{
PicAndNamePanel.Visibility = Visibility.Collapsed;
NamePanel.Visibility = Visibility.Visible;
}
else if (action.Equals(ActionType.Update))
{
PicAndNamePanel.Visibility = Visibility.Visible;
NamePanel.Visibility = Visibility.Visible;
}
else if (action.Equals(ActionType.Delete))
{
PicAndNamePanel.Visibility = Visibility.Visible;
NamePanel.Visibility = Visibility.Collapsed;
}
}