/// <summary>
    /// Gets the arguements from the handler to set the progress indicator.
    /// </summary>
    /// <param name="args">The args.</param>
    private void InsertTargetHandler(InsertProgressArgs args)
    {
        RadProgressContext insertProgress = RadProgressContext.Current;

        insertProgress["PrimaryPercent"]   = Convert.ToString(Math.Round(Decimal.Divide(args.ProcessedCount, args.RecordCount) * 100));
        insertProgress["PrimaryValue"]     = String.Format("({0})", args.ProcessedCount.ToString());
        insertProgress["PrimaryTotal"]     = String.Format("({0})", args.RecordCount.ToString());
        insertProgress["SecondaryValue"]   = String.Format("({0})", args.InsertedCount.ToString());
        insertProgress["SecondaryTotal"]   = String.Format("({0})", args.ErrorCount.ToString());
        insertProgress["ProcessCompleted"] = "False";
        Thread.Sleep(1000);
    }
Esempio n. 2
0
 /// <summary>
 /// Gets the arguements from the handler to set the progress indicator.
 /// </summary>
 /// <param name="args">The args.</param>
 private void InsertTargetHandler(InsertProgressArgs args)
 {
     RadProgressContext insertProgress = RadProgressContext.Current;
     insertProgress["myProgressInfo"] = "112";
     insertProgress["PrimaryPercent"] = Convert.ToString(Math.Round(Decimal.Divide(args.ProcessedCount, args.RecordCount) * 100));
     insertProgress["PrimaryValue"] = String.Format("({0})", args.ProcessedCount.ToString());
     insertProgress["PrimaryTotal"] = String.Format("({0})", args.RecordCount.ToString());
     insertProgress["SecondaryValue"] = String.Format("({0})", args.InsertedCount.ToString());
     insertProgress["SecondaryTotal"] = String.Format("({0})", args.ErrorCount.ToString());
     insertProgress["ProcessCompleted"] = "False";
     Thread.Sleep(1000);
 }