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;
         }
     }
 }
 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;
     }
 }