How to end my WPF application and initialize it again?

0

I have in my application a database configuration screen, in which once configured I have to close the system and then open again to take effect the changes made. How can I do this in an automatic way?

    
asked by anonymous 02.10.2014 / 21:36

1 answer

3

Although using WPF, since you can add a reference to the System.Windows.Form assembly (I see no reason not to), you can use a method of namespace System.Windows.Forms :

System.Windows.Forms.Application.Restart();

See: link

    
02.10.2014 / 22:08