Ejemplo n.º 1
0
        private bool RestoreIndexFromUndoRecord(Record record)
        {
            int currentIndex = m_treeView.IndexOf(record.Target);

            int  index      = (int)record.State;
            bool hasChanged = currentIndex != index;

            if (hasChanged)
            {
                m_treeView.SetIndex(record.Target, index);
                m_treeView.UpdateIndent(record.Target);
            }
            return(false);
        }