copy from thinkAmi/CSharp-Sample/MVVMApp/LoginWindowCloseMVVM