I have a question. I want the project to restart when I press the cancel button in the MessageBox in C # I tried the following code Process.GetCurrentProcess (). Start (); but it didn't The full code is available below. There was a cancellation part, but I couldn't restart the project. Can you help me?
MessageBoxResult result = MessageBox.Show(message, title, MessageBoxButton.OKCancel, MessageBoxImage.Information);
if (result == MessageBoxResult.OK)
{
Process.GetCurrentProcess().Kill();
}
else
{
Process.GetCurrentProcess().Refresh();
}