コード例 #1
0
 private void TextBlock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
 {
     Black blackwindow = new Black();
     blackwindow.Show();
     MainWindow main = new MainWindow();
     App.Current.MainWindow = main;
     main.Show();
     blackwindow.Close();
     this.Close();
 }
コード例 #2
0
        private void ZmienOkno()
        {
            //DoubleAnimation da = new DoubleAnimation();
            //da.From = 1;
            // da.To = 0;
            //da.Duration = new Duration(TimeSpan.FromSeconds(0.7));
            //da.Completed += new EventHandler(da_Completed);
            //da.AutoReverse = true;
            //da.RepeatBehavior = RepeatBehavior.Forever;
            //da.RepeatBehavior=new RepeatBehavior(3);

            //da.AutoReverse = true;
            //da.RepeatBehavior = RepeatBehavior.Forever;
            //da.RepeatBehavior=new RepeatBehavior(3);
            // this.BeginAnimation(OpacityProperty, da);
            Black blackwindow = new Black();
            blackwindow.Show();
            PokojGlowny main = new PokojGlowny(token,id);

            //main.token = token; //przekazanie tokenu
            //main.id = id;       //przekazanie id
            //main.PrzekazUzytkownika(token, id);
            App.Current.MainWindow = main;
            //main.Opacity = 0;
            main.Show();
            blackwindow.Close();
            //main.Loaded += new RoutedEventHandler(da1_Completed);
            //MainWindow.BeginAnimation(OpacityProperty, da1);
            //this.GetAnimationBaseValue(da);

            //this.BeginAnimation
            //while(da.Completed==null)
            //this.Hide();
            //this.Close();

            this.Close();
        }
コード例 #3
0
 //rejestracja
 private void ZmienOkno2()
 {
     Black blackwindow = new Black();
     blackwindow.Show();
     Rejestracja rej = new Rejestracja();
     App.Current.MainWindow = rej;
     rej.Show();
     blackwindow.Close();
     this.Close();
 }
コード例 #4
0
        private void PrzejdzDoPokojuGlownego()
        {
            Black blackwindow = new Black();
            blackwindow.Show();
            PokojGlowny main = new PokojGlowny(token,id);

            //main.token = token;
            //main.id = id;

            App.Current.MainWindow = main;
            main.Show();
            blackwindow.Close();
            this.Close();
        }
コード例 #5
0
        private void PrzejdzDoPokoju(Int64 idPokoju)
        {
            Black blackwindow = new Black();
            try
            {
                blackwindow.Show();

                PokojGry main = new PokojGry(token, id, idPokoju);

                //main.token = token;
                //main.id = id;

                App.Current.MainWindow = main;
                main.Show();
                blackwindow.Close();
                this.Close();
            }
            catch (Exception ee)
            {
                blackwindow.Close();
                MessageBox.Show("Nie można przejść do pokoju! Spróbuj ponownie.");
            }
        }
コード例 #6
0
        private void PrzejdzDoPokoju()
        {
            Black blackwindow = new Black();
            blackwindow.Show();
            PokojGry main = new PokojGry();

            main.token = token;
            main.id = id;

            App.Current.MainWindow = main;
            main.Show();
            blackwindow.Close();
            this.Close();
        }
コード例 #7
0
        private void PrzejdzDoOknaLogowania()
        {
            Black blackwindow = new Black();
            blackwindow.Show();
            MainWindow main = new MainWindow();

            App.Current.MainWindow = main;
            //main.Opacity = 0;
            main.Show();
            blackwindow.Close();
            //main.Loaded += new RoutedEventHandler(da1_Completed);
            //MainWindow.BeginAnimation(OpacityProperty, da1);
            //this.GetAnimationBaseValue(da);

            //this.BeginAnimation
            //while(da.Completed==null)
            //this.Hide();
            //this.Close();

            this.Close();
        }