private void showFirstOption()
        {
            //if (TryInitPlayers() == false) return;
            var players = new List <SelectionItem <string> >()
            {
                new SelectionItem <string>(hostName, hostToken),
                new SelectionItem <string>(joinName, joinToken)
            };

            FirstStartComboBox.ItemsSource   = players;
            FirstStartComboBox.SelectedIndex = 0;
            FadeExtension.FadeInBoxOf(FirstSelectBox, FirstSelectBoxContent);
        }
        private void showLevelOpetion()
        {
            var availbleType = new List <SelectionItem <AILevel> >()
            {
                new SelectionItem <AILevel>(getAIName(AILevel.Advanced), AILevel.Advanced),
                new SelectionItem <AILevel>(getAIName(AILevel.Intermediate), AILevel.Intermediate),
                new SelectionItem <AILevel>(getAIName(AILevel.Elementary), AILevel.Elementary)
            };

            if (GameMode == GameMode.PvE)
            {
                SecLevelContent.Visibility       = Visibility.Collapsed;
                FirstLevelComboBox.ItemsSource   = availbleType;
                FirstLevelComboBox.SelectedIndex = 0;
            }
            else
            {
                FirstLevelComboBox.ItemsSource   = availbleType;
                SecLevelComboBox.ItemsSource     = availbleType;
                FirstLevelComboBox.SelectedIndex = 0;
                SecLevelComboBox.SelectedIndex   = 0;
            }
            FadeExtension.FadeInBoxOf(LevelSelectBox, LevelBoxContent);
        }
 private void showPayTipsBox()
 {
     FadeExtension.FadeInBoxOf(PayTipsBox, PayTipsBoxContent);
 }
 private void showConnectionBox()
 {
     FadeExtension.FadeInBoxOf(ConnectionBox, ConnectionBoxContent);
 }