Sheas-Cealer/Proces/BrowserProc.cs
2025-06-06 10:37:43 +08:00

17 lines
477 B
C#

using Sheas_Core;
using System;
namespace Sheas_Cealer_Nix.Proces;
internal class BrowserProc : Proc
{
private readonly bool ShutDownAppOnProcessExit;
internal BrowserProc(string browserPath, bool shutDownAppOnProcessExit) : base(browserPath) => ShutDownAppOnProcessExit = shutDownAppOnProcessExit;
protected sealed override void Process_Exited(object? sender, EventArgs e)
{
if (ShutDownAppOnProcessExit)
Environment.Exit(0);
}
}