title: How to display information on a label in second window from the info in the main window
body: <p>HI I'm new to programming. I'm making an app on wpf where i submit some information about an employee such as name dob employee id . there are 4 buttons on the app . save : saves the details, GET brings the details i have put in back  , clear which clears all the info without affecting the classes and show more information, where it shows more info about the employee such as name. etc.</p>
  
  <p>i have got most of this working apart from displaying the label as name in the second window.  the window should only open if the age of the employee is 40 . </p>
  
  <pre><code>    private void buttonshow_Click(object sender, RoutedEventArgs e)
      {
  
          if ((int.Parse(textboxmark.Text)) &gt;= 40)
          {
  
          newWin.ShowDialog();
  
  
          }
  
          else
          {
              MessageBox.Show("Your under the age of 40");
          }
  
          newWin.label1.Content = employee1.Firstname;
  </code></pre>
  
  <p>is this wrong ? </p>