在多个步骤中报告进度的最佳方法 [英] Best way to report progress on a mulitple step process
问题描述
我正在开发一个用于将文本文件传输到服务器的应用程序.在传输文件之前,应用程序需要读取整个文件以确保其格式正确.总的来说,我估计应用程序将需要检查文件中10到20个不同的东西.我希望能够向用户报告每项检查的进度,并报告每项检查是否通过.如果其中一项任务失败,那么我想报告确切的问题,以便用户知道要解决的问题.
我正在努力提出在GUI上报告每个检查进度的最佳方法.我目前在列表框中报告了进度.该列表框工作正常,但看起来不是很动态.如果其中一项检查存在错误,我希望它能真正脱颖而出,这样很容易找到.
我还考虑了在未绑定的datagridview中报告进度.我以为可以在DGV中列出所有检查,然后添加一个字段来告诉它是通过还是失败.然后,我也可以进行设置,以便如果其中一项检查失败,则可以用红色突出显示该行.我唯一要做的就是现在如何告诉用户检查失败时要解决的问题?我考虑将另一列添加到DGV中以显示错误文本,但是即使没有错误,该列也会显示出来.
有人还有其他建议吗?我确定我不是第一个做这样的事情的人.一直认为输出窗口可以非常优雅地处理它-如果您确实愿意,可以添加总体进度条.
可以从 FileZilla [ ^ ]
请注意多个进度条.
最好的问候
Espen Harlinn
I am working on an application that will be used for transferring text files to a server. Before transferring the file, the application needs to read the entire file to make sure it is formatted correctly. Overall, I would estimate that the application will need to check between 10 to 20 different things in the file. I would like to be able to report the progress of each of these checks to the user and report whether each one passed or failed. If one of the tasks fails, I would then like to report the exact issue so the user knows what to correct.
I am struggling with coming up with the best way to report the progress of each of the checks on the GUI. I currently have the progress being reported in a listbox. The listbox works fine but it doesn''t seem very dynamic. If there is an error in one of the checks, I want it to really stand out so is easy to find.
I also considered reporting the progress in an unbound datagridview. I figured I could list all of my checks in the DGV and then add a field that would tell whether it passed or failed. I could then also set it up so that if one of the checks failed, I could highlight that row in red. The only issue I have with doing this is now how do I tell the user what to fix when the check fails? I considered adding another column to the DGV for the error text but then that column would show up even if there are no errors.
Does anyone have any other suggestions? I''m sure I''m not the first one to do something like this.
I''d take a looong look at Visual Studio, I''ve always thought that the output window handles this quite elegantly - and if you really want to you can add an overall progress bar.
Another good option can be borrowed from FileZilla[^]
Notice the multiple progress bars.
Best regards
Espen Harlinn
这篇关于在多个步骤中报告进度的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!