private void teleButton_Click(object sender, EventArgs e) { if (ObjectManager.getObjThread.IsAlive) { if (!Exchange.IsEngineRunning) { this.Hide(); teleportForm f1 = new teleportForm(); f1.ShowDialog(); this.Show(); } } }