private void button1_Click(object sender, EventArgs e) { IsAppRunning = false; WorkerProcess.StopProcessor(); Environment.Exit(Environment.ExitCode); }