コード例 #1
0
        public BlockControl(InARowGame.Lib.Block block)
        {
            Block       = block;
            DataContext = Block;

            Block.BeginIsTapped   += new InARowGame.Lib.Block.BeginIsTappedDelegate(Block_BeginIsTapped);
            Block.BeginShowWinner += new Lib.Block.BeginShowWinnerDelegate(Block_BeginShowWinner);
            Block.ResetBlock      += new Lib.Block.ResetDelegate(Block_Reset);

            InitializeComponent();

            ToBigAnimation.Completed += new EventHandler(ToBigAnimation_Completed);
            //ExplodeAnimation.Completed += new EventHandler(ExplodeAnimation_Completed);
        }
コード例 #2
0
 void Block_BeginShowWinner(InARowGame.Lib.Block block)
 {
     LayoutRoot.Background = new SolidColorBrush(Colors.Yellow);
 }
コード例 #3
0
 void Block_Reset(InARowGame.Lib.Block block)
 {
     LayoutRoot.Background = new SolidColorBrush(Colors.Transparent);
 }