public override bool CompareRows(AbstractBikeRow selected, AbstractBikeRow candidate) { RowWeekofyear thisselected = (RowWeekofyear)selected; RowWeekofyear thiscandidate = (RowWeekofyear)candidate; return(thisselected.Equals(thiscandidate)); }
//internal void UpdateForDR(DataRow dr, Dictionary<string, int> colnbr) //{ // RowTripCategories candidate = new RowTripCategories(dr, colnbr); // RowTripCategories selected; // if (Exists(x => x.Equals(candidate))) // { // selected = Find(x => x.Equals(candidate)); // selected.Bikes.IncValue(candidate.Bikes.GetValue()); // } // else // { // Add(candidate); // selected = candidate; // } // selected.SubscriberList.UpdateForDR(dr, colnbr); //} public override bool CompareRows(AbstractBikeRow selected, AbstractBikeRow candidate) { RowTripCategories thisSelected = (RowTripCategories)selected; RowTripCategories thisCandidate = (RowTripCategories)candidate; bool result = thisSelected.Equals(thisCandidate); return(result); }
//internal void UpdateForDR(DataRow dr, Dictionary<string, int> colnbr) //{ // RowSubscriber candidate = new RowSubscriber(dr, colnbr); // RowSubscriber selected; // if (Exists(x => x.Equals(candidate))) // { // selected = Find(x => x.Equals(candidate)); // selected.Bikes.IncValue(candidate.Bikes.GetValue()); // } // else // { // Add(candidate); // selected = candidate; // } // selected.Hour2List.UpdateForDR(dr, colnbr); //} public override bool CompareRows(AbstractBikeRow selected, AbstractBikeRow candidate) { RowSubscriber thisSelected = (RowSubscriber)selected; RowSubscriber thisCandidate = (RowSubscriber)candidate; bool result = thisSelected.Equals(thisCandidate); return(result); }