Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public sealed partial class MainPage : Page
- {
- public MainPage()
- {
- this.InitializeComponent();
- }
- private void NextButton_Click(object sender, RoutedEventArgs e)
- {
- Frame.Navigate(typeof(Page2));
- }
- private void GlobalButton_Click(object sender, RoutedEventArgs e)
- {
- GlobalValue.name = NameTextBox.Text;
- GlobalValue.telephone = TelephoneBox.Text;
- GlobalValue.email = EmailTextBox.Text;
- }
- public class data
- {
- public string textName1 { get; set; }
- public string textTele1 { get; set; }
- public string textEmail1 { get; set; }
- }
- private void NavButton_Click(object sender, RoutedEventArgs e)
- {
- data s = new data() { textName1 = NameTextBox.Text, textTele1 = TelephoneBox.Text, textEmail1 = EmailTextBox.Text };
- Frame.Navigate(typeof(Page2),s);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement