public void Clear() { treeView.Clear(); if (listView != null) { listView.Items.Clear(); } if (textEditor != null) { textEditorFileName = null; textEditor.Text = String.Empty; } }