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(); }
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(); }
//rejestracja private void ZmienOkno2() { Black blackwindow = new Black(); blackwindow.Show(); Rejestracja rej = new Rejestracja(); App.Current.MainWindow = rej; rej.Show(); blackwindow.Close(); this.Close(); }
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(); }
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."); } }
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(); }
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(); }