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