public BlockControl(AddOneGame.Lib.Block block) { Block = block; DataContext = Block; Block.BeginIsTapped += new Lib.Block.BeginIsTappedDelegate(Block_BeginIsTapped); Block.BeginExplodes += new Lib.Block.BeginExplodesDelegate(Block_BeginExplodes); InitializeComponent(); ToBigAnimation.Completed += new EventHandler(ToBigAnimation_Completed); ExplodeAnimation.Completed += new EventHandler(ExplodeAnimation_Completed); }
void Block_BeginExplodes(AddOneGame.Lib.Block block, Color color) { ExplodeAnimation.Begin(); }