private static void ShowConfiguration(IntPtr parentHwnd)
{
var dialog = new SettingsView();
WindowInteropHelper windowInteropHelper = null;
if (parentHwnd != IntPtr.Zero) {
windowInteropHelper = new WindowInteropHelper(dialog) { Owner = parentHwnd };
}
dialog.ShowDialog();
GC.KeepAlive(windowInteropHelper);
Current.Shutdown();
}