Requery after completion of the NiWaitDialog.

The NiWaitDialog may do message processing, invalidating the requery suggested. Because of this a requery suggested is forced after the wait dialog completes.
Changed buttons of task dialog into a collection.

The buttons in the task dialog were an array. This has been changed into a Collection`1 collection.
Added GetLineTermination to PlatformUtil.
Small improvements to the ListView implementation.