void DestroyExpressionControls() { if (view != null) { Controls.Remove(view); view.Dispose(); } }
private void DestroyExpressionControls() { if (_View != null) { Controls.Remove(_View); _View.Ok -= ExpressionView_Ok; _View.Cancel -= ExpressionView_Cancel; _View.Dispose(); _View = null; } }