主要的代码如下
try
{
WindowManager.Instance.StatusBar.StartProgressDisplay();
WindowManager.Instance.StatusBar.ProgressMinimum = 0;
WindowManager.Instance.StatusBar.ProgressMaximum = 100;
WindowManager.Instance.StatusBar.Progress = 0;
WindowManager.Instance.StatusBar.ProgressText = "";
for (int i = 0; i < 100; i++)
{
Thread.Sleep(100);
WindowManager.Instance.StatusBar.ProgressText = $"第{(i + 1)}个任务。。。";
WindowManager.Instance.StatusBar.Progress = i + 1;
}
WindowManager.Instance.StatusBar.FinishProgressDisplay();
}
catch (Exception)
{
}
效果如下
标签:StatusBar,进度条,c#,Aveva,WindowManager,Instance,Progress,100 From: https://www.cnblogs.com/NanShengBlogs/p/18169922