public void FixCallback(AssetDetailList calledFromTreeView, object context)
        {
            // TODO find out how to multi select
            // TODO if selection is a folder

            AssetViewItem selectedNodes = context as AssetViewItem;

            if (selectedNodes != null)
            {
                CopyProperties(selectedNodes);
                foreach (IConformObject data in selectedNodes.conformData)
                {
                    data.Conforms = true;
                }
                calledFromTreeView.m_PropertyList.Reload();
            }
            else
            {
                Debug.LogError("Could not fix Asset with no Assets selected.");
            }
        }
Example #2
0
        private void RefreshData()
        {
            profiles     = new List <AuditProfile>();
            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 AssetDetailList(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_PropertyList             = new PropertyDetailList(m_PropertyListState);
            m_AssetList.m_PropertyList = m_PropertyList;
            m_PropertyList.Reload();

            if (selection != null)
            {
                m_AssetList.SetupSelection(selection);
            }
        }