ProgressBar implementation on Rhino

Hi, i have a process on Rhino 5 with c# and it takes a lot of time to finish. Then, i would to show a progressbar while the process is running.
How to do this ?

You can use these static functions:

using Rhino.UI;

StatusBar.ShowProgressMeter(int lowerLimit, int upperLimit, string label, bool embedLabel, bool showPercentageComplete);
StatusBar.UpdateProgressMeter(int position, bool absolute);

Thanks, it works perfect