public void StopPreviewing() { PreviewPickID = ""; IsPreviewCapturing = false; IsPreviewing = false; UnsortedBowls.ForEach(x => x.StopPreviewing()); }
private void PrepForStateChange() { Access.Data <MancalaData>(ID).PrepForStateChange(); UnsortedBowls.SelectMany(x => x.StoneIDs).ForEach(x => { Access.Data <StoneData>(x).PrepForStateChange(); Access.BodyData <StoneBodyData>(x).PrepForStateChange(); }); UnsortedBowls.ForEach(x => Access.Data <BowlData>(x.ID).PrepForStateChange()); }
public void Undo() { Access.Data <MancalaData>(ID).Undo(); UnsortedBowls.SelectMany(x => x.StoneIDs).ForEach(x => { Access.Data <StoneData>(x).Undo(); Access.BodyData <StoneBodyData>(x).Undo(); }); UnsortedBowls.ForEach(x => Access.Data <BowlData>(x.ID).Undo()); }