当前位置: 首页>>代码示例>>C#>>正文


C# ActionType.Equals方法代码示例

本文整理汇总了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;
         }
     }
 }
开发者ID:eCampusPlus,项目名称:eCampusPlusEnginePOC,代码行数:58,代码来源:PagesHelper.cs

示例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;
     }
 }
开发者ID:shahzadadil,项目名称:BirthdayReminderAndManager,代码行数:23,代码来源:FriendDetails.xaml.cs


注:本文中的ActionType.Equals方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。