Tuesday, 15 January 2013

user interface - PowerShell gui and the endless program loop? -



user interface - PowerShell gui and the endless program loop? -

after gui works stunned how integrate endless programme loop. gui meant display status of several socket-connections. have:

the gui phone call powershell hand on s.th. $todo (not working?) generateform the endless loop reacts on orders of gui , stopped if exit-button of gui clicked.

how do without gui (generateform) called 1 time again , again?

do { # write status lines of gui... } until ( <# exit-function of gui called #> ) #disconnect, close , dispose..

the showdialog() method blocks until form closed. hence need status updating result of events firing (inside event handler). since sockets class seems lacking in events, can set winforms timer event fire event handler every 500 millisecs or check socket status.

powershell user-interface

No comments:

Post a Comment