private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     ThreadsManager.FinishWork();
     ThreadsManager.StopAll();
 }
 private void btnStop_Click(object sender, EventArgs e)
 {
     ThreadsManager.StopAll();
 }