/// <summary>
    /// Gets the arguements from the handler to set the progress indicator.
    /// </summary>
    /// <param name="args">The args.</param>
    private void JobProgressHandler(DeDupJobEventArgs args)
    {
        RadProgressContext jobProgress = RadProgressContext.Current;
        string             percent;

        try
        {
            percent = Convert.ToString(args.Job.ProgressInfo.Percent);
        }
        catch (Exception)
        {
            percent = "0";
        }
        if (args.Job != null && args.Job.ProgressInfo.ProcessedCount < 2)
        {
            Page.Session["DeDupJobId"] = args.Job.JobId;
        }

        object processingMessageFormat = GetLocalResourceObject("processingMessage");

        if (processingMessageFormat == null)
        {
            processingMessageFormat = "Processing record {0} of {1} - ({2}%)";
        }

        jobProgress["PrimaryValue"]   = String.Format((string)processingMessageFormat, args.Job.ProgressInfo.ProcessedCount, args.Job.ProgressInfo.RecordCount, percent);
        jobProgress["SecondaryTotal"] = args.Job.ProgressInfo.DuplicateCount.ToString();
        if (args.Job.ProgressInfo.ErrorCount > 0)
        {
        }
        else
        {
            jobProgress["ProcessCompleted"] = "False";
        }
    }
    /// <summary>
    /// Gets the arguements from the handler to set the progress indicator.
    /// </summary>
    /// <param name="args">The args.</param>
    private void JobProgressHandler(DeDupJobEventArgs args)
    {
        RadProgressContext jobProgress = RadProgressContext.Current;
        string percent;
        try
        {
            percent = Convert.ToString(args.Job.ProgressInfo.Percent);
        }
        catch (Exception)
        {
            percent = "0";
        }
        if (args.Job != null && args.Job.ProgressInfo.ProcessedCount < 2)
        {
            Page.Session["DeDupJobId"] = args.Job.JobId;
        }

        object processingMessageFormat = GetLocalResourceObject("processingMessage");
        if (processingMessageFormat == null)
            processingMessageFormat = "Processing record {0} of {1} - ({2}%)";

        jobProgress["PrimaryValue"] = String.Format((string)processingMessageFormat, args.Job.ProgressInfo.ProcessedCount, args.Job.ProgressInfo.RecordCount, percent);
        jobProgress["SecondaryTotal"] = args.Job.ProgressInfo.DuplicateCount.ToString();
        if (args.Job.ProgressInfo.ErrorCount > 0)
        {
        }
        else
        {
            jobProgress["ProcessCompleted"] = "False";
        }
    }