Ejemplo n.º 1
0
    /// <summary>
    /// Deletes notification gateway. Called when the "Delete gateway" button is pressed.
    /// Expects the CreateNotificationGateway method to be run first.
    /// </summary>
    private bool DeleteNotificationGateway()
    {
        // Get the notification gateway
        NotificationGatewayInfo deleteGateway = NotificationGatewayInfoProvider.GetNotificationGatewayInfo("MyNewGateway");

        // Delete the notification gateway
        NotificationGatewayInfoProvider.DeleteNotificationGatewayInfo(deleteGateway);

        return(deleteGateway != null);
    }
Ejemplo n.º 2
0
    protected void unigridGatewayList_OnAction(string actionName, object actionArgument)
    {
        int gatewayId = ValidationHelper.GetInteger(actionArgument, 0);

        switch (actionName.ToLowerCSafe())
        {
        case "edit":
            URLHelper.Redirect("Gateway_Edit.aspx?gatewayid=" + gatewayId);
            break;

        case "delete":
            NotificationGatewayInfoProvider.DeleteNotificationGatewayInfo(gatewayId);
            break;
        }
    }