/// <summary>
 /// Removes localization from database if AutomaticMode is on.
 /// </summary>
 private void RemoveLocalization(string resKey)
 {
     // In automatic mode remove resource string key
     if (AutomaticMode)
     {
         ResourceStringInfoProvider.DeleteResourceStringInfo(resKey);
     }
 }
Beispiel #2
0
    /// <summary>
    /// Handles the UniGrid's OnAction event.
    /// </summary>
    /// <param name="actionName">Name of item (button) that threw event</param>
    /// <param name="actionArgument">ID (value of Primary key) of corresponding data row</param>
    protected void UniGridCultures_OnAction(string actionName, object actionArgument)
    {
        switch (actionName)
        {
        case "edit":
            URLHelper.Redirect(String.Format("Edit.aspx?stringkey={0}&culturecode={1}", actionArgument.ToString(), mCultureInfo.CultureCode));
            break;

        case "delete":
            ResourceStringInfoProvider.DeleteResourceStringInfo(actionArgument.ToString(), mCultureInfo.CultureCode);
            break;

        case "deleteall":
            ResourceStringInfoProvider.DeleteResourceStringInfo(actionArgument.ToString());
            break;
        }
    }