예제 #1
0
        public MainPage()
        {
            this.InitializeComponent();

            Player1.Init(_manager, _manager.Player1);
            Player2.Init(_manager, _manager.Player2);
            Player3.Init(_manager, _manager.Player3);
            Player4.Init(_manager, _manager.Player4);

            Player1.Flip();
            Player2.Flip();

            Player1.SetBackGround(BackGroundColors.Yellow);
            Player2.SetBackGround(BackGroundColors.Green);
            Player3.SetBackGround(BackGroundColors.Purple);
            Player4.SetBackGround(BackGroundColors.Blue);

            SettingsBar1.Init(_manager, this);
            SettingsBar1.ButtonClicked += btnSettings_Click;
            SettingsBar2.Init(_manager, this);
            SettingsBar2.ButtonClicked += btnSettings_Click;


            SettingsBar2.Visibility = SettingsBar1.Visibility = Visibility.Collapsed;
        }