public MainWindow()
        {
            InitializeComponent();

            sound = new MediaPlayer();
            sound.Open(new Uri(@"\\ict.ru.ac.za\DFS\UGHomes\g18m2569\Desktop\MULENGA !\SNAKES AND LADDERS\PLAYERS\sound.wav"));
            sound.Play();



            myTimer           = new DispatcherTimer();
            myTimer.Interval  = TimeSpan.FromSeconds(10);
            myTimer.IsEnabled = true;
            myTimer.Tick     += theTime;
            first             = new LOADING();
            first.Show();
            player_win.Hide();



            out_1.Background = System.Windows.Media.Brushes.LightBlue;
            out_2.Background = System.Windows.Media.Brushes.LightBlue;
            out_3.Background = System.Windows.Media.Brushes.LightBlue;
            out_4.Background = System.Windows.Media.Brushes.LightBlue;
        }
Exemple #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.loading_wn = ((PLAYERS.LOADING)(target));
                return;

            case 2:
                this.grig = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.progress_bar = ((System.Windows.Controls.ProgressBar)(target));

            #line 15 "..\..\LOADING.xaml"
                this.progress_bar.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.progress_bar_ValueChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.lbldots = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }