private void FormMain_FormClosing(object sender, FormClosingEventArgs e) { mainB.CleanUp(); Dispose(); }