Пример #1
0
        private void OpNodesMatch(int i, int j)
        {
#if DEBUG
            Trace.WriteIf(XmlDiff.T_ForestDistance.Enabled, "\\");
#endif

            EditScriptMatchOpened openedMatch = _forestDist[i - 1, j - 1]._editScript as EditScriptMatchOpened;

            if (openedMatch == null)
            {
                openedMatch = new EditScriptMatchOpened(i, j, _forestDist[i - 1, j - 1]._editScript.GetClosedScript(i - 1, j - 1));
            }

            _forestDist[i, j]._editScript = openedMatch;
            _forestDist[i, j]._cost       = _forestDist[i - 1, j - 1]._cost;
        }
Пример #2
0
        private void OpNodesMatch( int i, int j )
        {
            #if DEBUG
            Trace.WriteIf( XmlDiff.T_ForestDistance.Enabled, "\\" );
            #endif

            EditScriptMatchOpened openedMatch = _forestDist[ i-1, j-1 ]._editScript as EditScriptMatchOpened;

            if ( openedMatch == null )
            openedMatch  = new EditScriptMatchOpened( i, j, _forestDist[ i-1, j-1 ]._editScript.GetClosedScript( i-1, j-1 ) );

            _forestDist[ i, j ]._editScript = openedMatch;
            _forestDist[ i, j ]._cost = _forestDist[ i-1, j-1 ]._cost;
        }