示例#1
0
        private void searchTravelPackageButton_Click(object sender, RoutedEventArgs e)
        {
            SecondWindow f2 = new SecondWindow();

            f2.destinationLabel.Content = "Destination: " + destinationSelectionBox.SelectionBoxItem;
            f2.budgetLabel.Content      = "Budget: $" + budgetTextBox.Text;
            f2.Show();
            Close();



            Table table  = Table.LoadTable(client, "Travels");
            var   travel = new Document();

            int    bgt = int.Parse(budgetTextBox.Text);
            String des = (string)destinationSelectionBox.SelectionBoxItem;

            travel["Budget"]      = bgt;
            travel["Destination"] = des;

            table.PutItem(travel);
        }