Exemplo n.º 1
0
        public void ResolveConflict(IEnumerable <KeyCombination> keyCombinationSequence, IEnumerable <ShortcutEntry> entries)
        {
            // Ignore further conflicts while there is an unresolved conflict pending
            if (m_UnresolvedConflictPending)
            {
                return;
            }

            m_UnresolvedConflictPending = true;

            m_Entries.AddRange(entries);
            m_ConflictResolverView.Show(this, keyCombinationSequence, m_Entries);
        }
Exemplo n.º 2
0
        public void ResolveConflict(IEnumerable <KeyCombination> keyCombinationSequence, IEnumerable <ShortcutEntry> entries)
        {
            // Ignore further conflicts while there is an unresolved conflict pending
            if (m_UnresolvedConflictPending)
            {
                return;
            }

            m_UnresolvedConflictPending = true;

            m_Entries.AddRange(entries);

            foreach (var entry in entries)
            {
                m_Contexts.Add(m_ContextManager.GetContextInstanceOfType(entry.context));
            }
            m_ConflictResolverView.Show(this, keyCombinationSequence, m_Entries);
        }