private void StartButton_Click(object sender, RoutedEventArgs e) { this.creationForm = new CreationForm(); creationForm.Show(); //this.Hide(); //Console.WriteLine("Start button was clicked"); }
//When Next button is clicked private void NextButton_Click(object sender, RoutedEventArgs e) { CreationForm currentForm = ((MainWindow)System.Windows.Application.Current.MainWindow).creationForm; ResultsTab currentResultsTabControl = currentForm.ResultsTabControl; currentForm.TabController.SelectedIndex += 1; currentForm.ResultsTabLabel.Visibility = Visibility.Visible; currentResultsTabControl.Field1.Text = currentForm.InfoPageControl.FirstNameForm.Text; }