protected void OnDeleteEvent(object sender, DeleteEventArgs a) { Rotinas.Desconectar(); Application.Quit(); a.RetVal = true; }
void FrmPrincipalFormClosed(object sender, FormClosedEventArgs e) { Rotinas.Desconectar(); }