public void CreateNewPile(FlinchCardInformation thisCard) // because this appears to be the only game that has it this way. (?) { BasicPileInfo <FlinchCardInformation> ThisPile = new BasicPileInfo <FlinchCardInformation>(); ThisPile.ObjectList.Add(thisCard); PileList.Add(ThisPile); // the bindings should do what it needs to (because of observable) well see }
public void AddCardToPile(int pile, FlinchCardInformation thisCard) { var thisPile = PileList[pile]; thisPile.ObjectList.Add(thisCard); // i think its this simple }