1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
if (cptav > 1)
{
oldindexdeb1 = oldindexfin1;
oldindexfin1 = Profil.CountObs[cptav];
}
else
{
oldindexdeb1 = 0;
oldindexfin1 = Profil.CountObs[cptav];
}
temporaryconso.AddRange(Profil.ListOfObservation.GetRange(oldindexdeb1, oldindexfin1));
if (cptav > 1)
{
oldindexdeb2 = oldindexfin2;
oldindexfin2 = historiqueConsommation[cptjour].CountObs[cptav];
}
else
{
oldindexdeb2 = 0;
oldindexfin2 = historiqueConsommation[cptjour].CountObs[cptav];
}
temporaryconso.AddRange(historiqueConsommation[cptjour].ListOfObservation.GetRange( oldindexdeb2, oldindexfin2)); |
Partager