private void btnDisconnect_Click(object sender, EventArgs e) { if (MetroFramework.MetroMessageBox.Show(this, "\n\nInterrompere la connessione al server ?", "Server connesso", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes) { ServerManager.Disconnect(); lblIP.Text = String.Empty; ToggleFields(Status.Offline); } }