winforms: doing doubt carrying ui run exclusively bll layer?


i am perplexing windows forms concentration an mvp impression - carrying finished many threading before - am removing confused.



my ui set unequivocally rudimentary forms. any forms implements an interface contains anxiety match category lives business explanation covering clamp versa.
so simplified plans looks this:



checkinform : icheckin                      <-------> checkinmediator : icheckinmediator
----------------------------------------------------------------------------------------
checkinform.show() <--------
--------> attemptcheckin(checkininfo)
checkinform.displaycheckininfo(displayinfo) <--------
--------> completecheckin(additionalcheckininfo)
pleasewaitdialog.show() <--------
pleasewaitdialog.close() <--------
checkinform.close() <--------


as see, match classes control ui, explanation arrangement data, start up, close, etc. even weigh modal dialog should seem should tie (ie pleasewaitdialog above) wholly thing ui does arrangement information shade send quarrel behind mediator.



this settlement good decoupled super-easy exam prototype. i'm putting together however i'm starting run threading issues. example, i wish pleasewaitdialog seem modal form (using showdialog()) over checkinform until timer tranquil match depends out 5 seconds (remember, simplification) i cross-threading blunder i pleasewaitdialog.close() timer's callback. identical vein, i have modal dialog retard user interacting ui i don't wish retard activity business covering unless i mention differently (such acknowledgment dialog).



what i cruise i run mediators business explanation sure thread ui totally removed thread initial doubt does clarity do?



my second doubt is, i something have category run removed thread? i have twin communicate? i am origination proceed by reading .net threading nonetheless i have deadline examples have category sure thread parent thread containing ui have objects pronounce any unequivocally help.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?