Example #1
0
        protected override void OnFormClosing(FormClosingEventArgs e)
        {
            base.OnFormClosing(e);

            if (continuarExecucao)
            {
                return;
            }

            ComunicacaoServidor.Desconectar();
            Application.Exit();
        }
Example #2
0
 public void Close()
 {
     ComunicacaoServidor.Desconectar();
 }