wpf - C# Wait for another opened window to close before executing the rest of the function -
i had created 2 wpf window.
for window 1:
//get ic detail first coakeyinaccounticcanvas coakeyinaccountcanvas = new coakeyinaccounticcanvas(this, _printerison); coakeyinaccountcanvas.topmost = true; coakeyinaccountcanvas.show(); if(checkcoakeyinicstatus.checkcoakeyinaccounticstatus == true) { //check user ownership checkcoaowner.visibility = visibility.visible; // let user choose whether owner or representer } else { accountnumber = ""; checkcoaowner.visibility = visibility.hidden; getaccountcanvas.visibility = visibility.visible; }
initially, coakeyinaccountcanvas
window checking , update checkcoakeyinicstatus.checkcoakeyinaccounticstatus
either "false" or "true".
how can unhold if-else statement function executed before coakeyinaccountcanvas
window had finished function?
use:
coakeyinaccountcanvas.showdialog();
instead:
coakeyinaccountcanvas.show();
Comments
Post a Comment