void SetVisible(bool standBy, bool chooseShip, bool SelfDestruct, bool simulationEnded, bool connect)
{
if (InvokeRequired)
{
this.Invoke(new Action<bool, bool, bool, bool, bool>(SetVisible), standBy, chooseShip, SelfDestruct, simulationEnded, connect);
}
else
{
grpStandby.Visible = standBy;
grpShip.Visible = chooseShip;
grpSimulationEnded.Visible = simulationEnded;
btnSelfDestruct.Visible = SelfDestruct;
connectBox.Visible = connect;
}
}
public void SimulationEnded()