private void UpdateButtonStrikeStates(Stage stage, bool isStruck)
 {
     if (stageGroup.HasStage(stage))
     {
         ButtonLayout.Children.Cast <StageButtonView>().First().MarkAsStruck(isStruck);
     }
 }
        public void HasStage_DoesNot_False()
        {
            var testObj = new StageGroup(stageA, stageB);

            var hasStage = testObj.HasStage(stageC);

            Assert.False(hasStage);
        }
        public void HasStage_IsChild_True()
        {
            var testObj = new StageGroup(stageA, stageB, stageC);

            var hasStage = testObj.HasStage(stageC);

            Assert.True(hasStage);
        }
Ejemplo n.º 4
0
 private void UpdateButtonStrikeStates(Stage stage, bool isStruck)
 {
     if (stageGroup.HasStage(stage))
     {
         foreach (var stageButton in stageButtons)
         {
             stageButton.MarkAsStruck(isStruck);
         }
     }
 }
        private void UpdateWinBanners(StageGroup stageGroup, IStageGroupView stageGroupView, Player player)
        {
            var winStack = ViewModel.SetController.totalWins[player];
            int winCount = winStack.Count(stageGroup.HasStage);

            if (winCount > 0)
            {
                stageGroupView.ShowWins(winCount, player, stageGroup.HasStage(winStack.Peek()));
            }
        }