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?
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?
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