Esempio n. 1
0
 void OnEnable()
 {
     // Code below is executed both when the window is opened and at mono reloads.
     LoadMembers(m_FirstLoad > 0);
     if (string.IsNullOrEmpty(m_List.selectedMemberName))
     {
         m_Editor = null;
     }
     if (m_Editor != null)
     {
         m_Editor.OnEnable(m_List.GetSelectedMemberSlow());
     }
     if (m_List != null)
     {
         m_List.SetCallbacks(MaySelectNewMember, OnSelectMember);
     }
     if (m_MatchList != null)
     {
         m_MatchList.SetCallbacks(MaySelectNewMatch, OnSelectMatch);
     }
 }
Esempio n. 2
0
    private void OnSelectMember(MemberList list, string memberName)
    {
        if (ShowMatchList)
        {
            UpdateMatch();
            return;
        }

        MemberItem item = list.GetSelectedMemberSlow();

        if (item == null)
        {
            return;
        }
        m_Editor = new MemberEditor(this, item);
    }
Esempio n. 3
0
    private void UpdateMatch()
    {
        MemberItem docItem = m_List.GetSelectedMemberSlow();
        MemberItem asmItem = m_MatchList.GetSelectedMemberSlow();

        if (docItem == null)
        {
            m_Editor = null;
            return;
        }
        if (asmItem == null)
        {
            m_Editor = new MemberEditor(this, docItem);
            return;
        }
        m_Editor = new MemberEditor(this, docItem, asmItem);
    }