void DestroyWindow() { _searchView.KeyReleaseEvent -= HandleSearchViewKeyReleaseEvent; _searchView.KeyPressEvent -= HandleKeyPressEvent; _searchView.FocusOutEvent -= HandleFocusOutEvent; Visible = false; _listStore.Dispose(); Destroy(); }
protected override void OnDestroyed() { filterModel.Dispose(); templateStore.Dispose(); }
void DriveStateChanged() { ListStore ls = new ListStore(typeof(string)); combobox_speed.Model = ls; dvddrive = new DVDdrive(entry_dvd.Text); dvddrive.GetMediaInfo(); if (dvddrive.DiskInserted) { foreach (string d in dvddrive.WriteSpeeds) { combobox_speed.AppendText(d); } combobox_speed.Active = 0; combobox_speed.Sensitive = true; } else { combobox_speed.AppendText("No media"); combobox_speed.Active = 0; combobox_speed.Sensitive = false; } ls.Dispose(); TryState(); }
protected override void OnDestroyed() { if (searchBackgoundWorker != null && searchBackgoundWorker.IsBusy) { searchBackgoundWorker.CancelAsync(); searchBackgoundWorker.Dispose(); searchBackgoundWorker = null; } if (this.TreeView != null) { // Dispose (TreeView.GetRootNode ()); TreeView.Tree.CursorChanged -= HandleCursorChanged; this.TreeView.Clear(); this.TreeView = null; } if (definitions != null) { definitions.Clear(); definitions = null; } ActiveMember = null; if (memberListStore != null) { memberListStore.Dispose(); memberListStore = null; } if (typeListStore != null) { typeListStore.Dispose(); typeListStore = null; } if (documentationPanel != null) { documentationPanel.Destroy(); documentationPanel = null; } if (inspectEditor != null) { inspectEditor.LinkRequest -= InspectEditorhandleLinkRequest; inspectEditor.Destroy(); inspectEditor = null; } if (this.UIManager != null) { this.UIManager.Dispose(); this.UIManager = null; } this.languageCombobox.Changed -= LanguageComboboxhandleChanged; // this.searchInCombobox.Changed -= SearchInComboboxhandleChanged; // this.searchEntry.Changed -= SearchEntryhandleChanged; this.searchTreeview.RowActivated -= SearchTreeviewhandleRowActivated; hpaned1.ExposeEvent -= HPaneExpose; PropertyService.PropertyChanged -= HandlePropertyChanged; base.OnDestroyed(); }