예제 #1
0
 private void Form1_FormClosing(object sender, FormClosedEventArgs e)
 {
     controller.Dispose();//Llamada a la funcion dispose del controlador
 }
 private void OnFormClosed(object sender, FormClosedEventArgs formClosedEventArgs)
 {
     _controller.RemoveListener(_listener);
     _controller.Dispose();
 }