Example #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            //information i = new information();
            luggage i = new luggage();             //应该是information

            i.ParentWindow          = parentWin;
            parentWin.frame.Content = i;
        }
Example #2
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            player.name              = this.name.Text;
            player.money             = 10000;
            player.start             = this.start.Text;
            player.destination       = this.destination.Text;
            player.date              = date.Text;
            parentWin.name0.Content  = "姓名:";
            parentWin.name.Content   = player.name;
            parentWin.money0.Content = "金钱:";
            parentWin.money.Content  = player.money;
            luggage i = new luggage();

            i.ParentWindow          = parentWin;
            parentWin.frame.Content = i;
        }