private void OpenPsdDocument() { if (System.IO.File.Exists(psdPath)) { psd = PsdDocument.Create(psdPath); m_TreeView = null; } }
private void TryInitTreeView() { if (m_TreeView == null) { m_TreeView = new PsdPreviewer(m_TreeViewState, psd); m_TreeView.SetRule(ruleObj); m_TreeView.Reload(); m_SearchField = new SearchField(); m_SearchField.downOrUpArrowKeyPressed += m_TreeView.SetFocusAndEnsureSelectedItem; } }