Пример #1
0
        private void saveSurvey_Click(object sender, RoutedEventArgs e)
        {
            Survey ss = new Survey();

            ss.SaveSurvey(ageBox.Text, retireAgeBox.Text, savedBox.Text, savePerMonth.Text, riskBox.Text, yearsBox.Text, amountBox.Text);

            ageBox.Text       = "";
            retireAgeBox.Text = "";
            savedBox.Text     = "";
            savePerMonth.Text = "";
            riskBox.Text      = "";
            yearsBox.Text     = "";
            amountBox.Text    = "";

            MessageBox.Show("Thank you for taking the survey!");

            Windows.Window2 backToFinance = new Windows.Window2();
            backToFinance.Show();
            this.Close();
        }
Пример #2
0
 private void backToFinance_Click(object sender, RoutedEventArgs e)
 {
     Windows.Window2 backToFinance = new Windows.Window2();
     backToFinance.Show();
     this.Close();
 }