/// <summary> /// Clears the filter. /// </summary> private void ClearSearch() { try { if (toolStripButtonAssemblyView.Checked) { //Clear all the nodes added to the Assembly Treeview dbAssemblyTreeView.Nodes.Clear(); //Repopulate Assembly Treeview dbAssemblyTreeView.PopulateAssemblyTreeView(storedAssemblies); } else { dbtreeviewObject.Nodes.Clear(); dbtreeviewObject.AddFavouritFolderFromDatabase(); dbtreeviewObject.AddTreeNode(storedclasses, null); } //Reset the treeview images SetObjectBrowserImages(); toolStripButtonPrevious.Enabled = false; toolStripButtonNext.Enabled = true; toolStripButtonClear.Enabled = false; toolStripComboBoxFilter.SelectedIndex = 0; } catch (Exception oEx) { LoggingHelper.ShowMessage(oEx); } }