Im wondering how the update of a progressbar works?
I would like to update it with a new int percentage and after a couple of updates, i want it to close automaticly. Is this possible and if, how?
The current code behind the progressbar is as stated:
private void progressBar(int percentage)
{
prgB = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS);
prgB.DisplayProgressBar = true;
prgB.SetHeading("Loading");
prgB.SetLine(1,"xxxxxxx");
prgB.SetPercentage(percentage);
prgB.DisableCancel(true);
prgB.DoModal(GUIWindowManager.ActiveWindow);
}
I would like to update it with a new int percentage and after a couple of updates, i want it to close automaticly. Is this possible and if, how?
The current code behind the progressbar is as stated:
private void progressBar(int percentage)
{
prgB = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS);
prgB.DisplayProgressBar = true;
prgB.SetHeading("Loading");
prgB.SetLine(1,"xxxxxxx");
prgB.SetPercentage(percentage);
prgB.DisableCancel(true);
prgB.DoModal(GUIWindowManager.ActiveWindow);
}