private void RefreshData() { profiles = new List <ImportDefinitionProfile>(); profileNames = new List <string>(); GetAuditorProfiles( ); if (m_AssetListState == null) { m_AssetListState = new TreeViewState(); } IList <int> selection = null; if (m_AssetList != null) { selection = m_AssetList.GetSelection(); } m_AssetList = new AssetsTreeView(m_AssetListState); m_AssetList.SearchStyle = (HierarchyTreeView.SearchType)EditorPrefs.GetInt("AuditWindow.AssetsTreeView.SearchStyle", 1); m_AssetList.SearchCaseSensitive = EditorPrefs.GetBool("AuditWindow.AssetsTreeView.SearchCaseSensitivity", false); if (profiles.Count > 0 && selected < profiles.Count) { m_AssetList.m_Profile = profiles[selected]; } m_AssetList.Reload(); if (m_PropertyListState == null) { m_PropertyListState = new TreeViewState(); } if (m_ModularTreeView == null) { MultiColumnHeaderState headerState = CreateDefaultMultiColumnHeaderState(); if (MultiColumnHeaderState.CanOverwriteSerializedFields(m_ConformTreeHeaderState, headerState)) { MultiColumnHeaderState.OverwriteSerializedFields(m_ConformTreeHeaderState, headerState); } m_ConformTreeHeaderState = headerState; m_ModularTreeView = new ModularDetailTreeView(m_PropertyListState, m_ConformTreeHeaderState); } m_AssetList.m_ModularTreeView = m_ModularTreeView; m_ModularTreeView.Reload(); if (selection != null) { m_AssetList.SetupSelection(selection); } }
private void RefreshData() { profiles = new List <ImportDefinitionProfile>(); profileNames = new List <string>(); GetAuditorProfiles( ); if (m_AssetListState == null) { m_AssetListState = new TreeViewState(); } IList <int> selection = null; if (m_AssetList != null) { selection = m_AssetList.GetSelection(); } m_AssetList = new AssetsTreeView(m_AssetListState); if (profiles.Count > 0 && selected < profiles.Count) { m_AssetList.m_Profile = profiles[selected]; } m_AssetList.Reload(); if (m_PropertyListState == null) { m_PropertyListState = new TreeViewState(); } m_ModularTreeView = new ModularDetailTreeView(m_PropertyListState); m_AssetList.m_ModularTreeView = m_ModularTreeView; m_ModularTreeView.Reload(); if (selection != null) { m_AssetList.SetupSelection(selection); } }