Ejemplo n.º 1
0
        /// <summary>
        /// Consctrutor by default
        /// </summary>
        public MainWindow()
        {
            DoubleAnimation daIn = new DoubleAnimation();

            Welcome welcomeScreen = new Welcome();

            welcomeScreen.ShowDialog();

            imageCoinType = new ECoinType[2];

            ChoosePlayerDialog choosePlayerDialog = new ChoosePlayerDialog(ref imageCoinType);

            choosePlayerDialog.ShowDialog();

            InitializeComponent();

            Container.Background = Brushes.White;

            //we start a timer
            dtClockTime = new DispatcherTimer
            {
                Interval = new TimeSpan(0, 0, 1) //in Hour, Minutes, Second.
            };
            dtClockTime.Tick += DtClockTime_Tick;

            InitGridWithButton();
            LoadAssets();
            BindingPlayer();
            NewGame();
        }
Ejemplo n.º 2
0
        private void Button_ChooseOtherHeroes(object sender, RoutedEventArgs e)
        {
            this.Hide();
            ChoosePlayerDialog choosePlayerDialog = new ChoosePlayerDialog(ref this.arrayPlayerBrush);

            choosePlayerDialog.ShowDialog();
            this.Close();
        }