public override void Dispose() { disposed = true; if (colCommit != null) { colCommit.Destroy(); colCommit = null; } if (colRemote != null) { colRemote.Destroy(); colRemote = null; } if (colFile != null) { colFile.Destroy(); colFile = null; } if (filestore != null) { filestore.Dispose(); filestore = null; } if (filelist != null) { filelist.DoPopupMenu = null; filelist.RowActivated -= OnRowActivated; filelist.DiffLineActivated -= OnDiffLineActivated; filelist.TestExpandRow -= OnTestExpandRow; filelist.Selection.Changed -= OnCursorChanged; filelist.Destroy(); filelist = null; } if (cellToggle != null) { cellToggle.Toggled -= OnCommitToggledHandler; cellToggle.Destroy(); cellToggle = null; } if (this.diffRenderer != null) { this.diffRenderer.Destroy(); this.diffRenderer = null; } VersionControlService.FileStatusChanged -= OnFileStatusChanged; if (widget != null) { widget.Destroy(); widget = null; } localDiff.Clear(); remoteDiff.Clear(); base.Dispose(); }
private void _mainWidget_Destroyed(object sender, EventArgs e) { combobox1.Changed -= OnPositionComboChanged; combobox1.Focused -= OnTitleTextBoxEnter; listToggle.Toggled -= OnItemChecked; comboModel.Dispose(); comboRender.Destroy(); listModel.Dispose(); listRender.Destroy(); listToggle.Destroy(); mainWidget.Destroyed -= _mainWidget_Destroyed; owner = null; }
protected override void OnDestroyed() { base.OnDestroyed(); limitationWidget.Dispose(); // All this crap is needed for the GC to collect this widget and destroy it store.Dispose(); filter.Dispose(); sort.Dispose(); iconview.Destroy(); treeview.Destroy(); checkCell.Destroy(); Disposed = true; }
protected override void OnDestroyed() { btnSaveAndQuit.Clicked -= SaveAndQuit; btnQuit.Clicked -= Quit; btnCancel.Clicked -= Cancel; if (togRender != null) { togRender.Toggled -= toggled; togRender.Destroy(); togRender = null; } if (textRender != null) { textRender.Destroy(); textRender = null; } base.OnDestroyed(); }
private void _mainWidget_Destroyed(object sender, EventArgs e) { try { chkLegendInsideGraph.Toggled -= OnToggleLegendInsideGraph; combobox1.Changed -= OnPositionComboChanged; combobox1.Focused -= OnTitleTextBoxEnter; listToggle.Toggled -= OnItemChecked; comboModel.Dispose(); comboRender.Destroy(); listModel.Dispose(); listRender.Destroy(); listToggle.Destroy(); mainWidget.Destroyed -= _mainWidget_Destroyed; owner = null; } catch (Exception err) { ShowError(err); } }