// The bulk of the clean-up code is implemented in Dispose(bool) protected virtual void Dispose(bool disposing) { if (disposing) { // free managed resources if (_form != null) { _form.Invoke(new Action(() => _form.Close())); _form = null; } if (_thread != null) { _thread.Abort(); _thread = null; } } }
public void Show(NeuralNetwork ann) { _form = new AnnVisualizerForm(ann); _form.Show(); }