public override void setUsedCurrency(ConstUsedCur pCur) { base.setUsedCurrency(pCur); blocksListBlock(bpArrPriceXToLoc); blocksListBlock(bpArrTotalXToLoc); blocksListBlock(bpArrPriceXFromLoc); blocksListBlock(bpArrTotalXFromLoc); // int curType = (int)pCur; int curIndex = listCurIndx.IndexOf(curType); // if (pCur == ConstUsedCur.national) { bpArrMain[curIndex].unblock(); // blocksListUnblock(bpArrPriceXFromLoc); blocksListUnblock(bpArrTotalXFromLoc); } else if (pCur == ConstUsedCur.trans || pCur == ConstUsedCur.report || pCur == ConstUsedCur.other || pCur == ConstUsedCur.euro) { bpArrMain[curIndex].unblock(); // bpArrPriceXToLoc[curIndex].unblock(); bpArrTotalXToLoc[curIndex].unblock(); // blocksListUnblock(bpArrPriceXFromLoc); blocksListUnblock(bpArrTotalXFromLoc); bpArrPriceXFromLoc[curIndex].block(); bpArrTotalXFromLoc[curIndex].block(); // } // }
public virtual void setUsedCurrency(ConstUsedCur pCur) { innerVarUsedCurrency = pCur; }