private void _mainWidget_Destroyed(object sender, System.EventArgs e) { try { propertyEditor.Dispose(); propertyEditor = null; (scriptEditor as ViewBase)?.Dispose(); scriptEditor = null; mainWidget.Destroyed -= _mainWidget_Destroyed; owner = null; } catch (Exception err) { ShowError(err); } }
private void _mainWidget_Destroyed(object sender, System.EventArgs e) { try { profileGrid.Dispose(); profileGrid = null; properitesView.Dispose(); properitesView = null; graph.Dispose(); graph = null; mainWidget.Destroyed -= _mainWidget_Destroyed; owner = null; } catch (Exception err) { ShowError(err); } }