Esempio n. 1
0
        private static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            if (e.IsTerminating)
            {
                var batchFile = DosyaYardımcısı.YenidenBaşlatmaBatı();
                if (string.IsNullOrEmpty(batchFile))
                {
                    return;
                }

                var startInfo = new ProcessStartInfo
                {
                    WindowStyle     = ProcessWindowStyle.Hidden,
                    UseShellExecute = true,
                    FileName        = batchFile
                };
                Process.Start(startInfo);
                Exit();
            }
        }