WPF window on closing

后端 未结 2 1837
南笙
南笙 2021-01-23 03:26

I want send some data on server, before window close. I use event closing, but it doesn t wokr. Where is a problem?

    private void Window_Closing(object sender         


        
2条回答
  •  别那么骄傲
    2021-01-23 04:08

    Did you check if there's a problem on _obj.CloseConnection()? Try to debug your code and check if the event handler is called.

提交回复
热议问题